Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Native Android Toast

An asset by leparlon
The page banner background of a mountain and forest
Native Android Toast hero image

Quick Information

0 ratings
Native Android Toast icon image
leparlon
Native Android Toast

This plugin allows you to display native Android Toast messages. It connects toast callbacks via signals. It also exposes the standard Android Toast parameters like duration and offset.Only works on Android.Contains a example scene.Note: The callbacks might not work perfectly on Android APIs under 30.

Supported Engine Version
4.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

ToastPlugin

ToastPlugin is a Godot plugin that allows you to display native Android Toast messages from your Godot project. It connects toast callbacks via signals. The callbacks might not work perfectly on Android APIs under 30.

Source code: https://github.com/leparlon/GodotToastPlugin

Features

  • Display native Android Toast messages
  • Supports toast callbacks via signals
  • Customizable toast duration and position

Requirements

  • Godot 4.2 or higher
  • Android API level 24 or higher (API level 30 recommended)

Installation

  1. Copy the addons/ToastPlugin folder into your Godot project's addons directory.
  2. Enable the plugin in your project settings: Project -> Project Settings -> Plugins.

Usage

Basic Usage

To display a simple toast message, you can use the show_toast method.

if Engine.has_singleton("ToastPlugin"):
    var toast_plugin = Engine.get_singleton("ToastPlugin")
    toast_plugin.show_toast("Hello, World!")

This plugin allows you to display native Android Toast messages. It connects toast callbacks via signals. It also exposes the standard Android Toast parameters like duration and offset.
Only works on Android.
Contains a example scene.

Note: The callbacks might not work perfectly on Android APIs under 30.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Native Android Toast icon image
leparlon
Native Android Toast

This plugin allows you to display native Android Toast messages. It connects toast callbacks via signals. It also exposes the standard Android Toast parameters like duration and offset.Only works on Android.Contains a example scene.Note: The callbacks might not work perfectly on Android APIs under 30.

Supported Engine Version
4.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers