SDL_ShowAndroidToast

Shows an Android toast notification.

Toasts are a sort of lightweight notification that are unique to Android.

https://developer.android.com/guide/topics/ui/notifiers/toasts

Shows toast in UI thread.

For the gravity parameter, choose a value from here, or -1 if you don't have a preference:

https://developer.android.com/reference/android/view/Gravity

version(Android)
extern (C) nothrow @nogc extern
bool
SDL_ShowAndroidToast
(
const char* message
,,,,)

Parameters

message char*

Text message to be shown.

duration int

0=short, 1=long.

gravity int

Where the notification should appear on the screen.

xoffset int

Set this parameter only when gravity >=0.

yoffset int

Set this parameter only when gravity >=0.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: It is safe to call this function from any thread.

Meta