From wiki.ginstr.com
Jump to: navigation, search

gn:act_toast

Description
Action used to displays toast message.
Action returns
void

Action signatures

Display toast message

[gn:act_toast]|[source]
Parameter Description
source source from where the action is using value as toast message

Example

@string/$noWriteRightsToast - message to display
[gn:act_toast]|[@string/$noWriteRightsToast]

Display toast message with duration

[gn:act_toast]|[source,duration]
Parameter Description
source source from where the action is using value as toast message
duration Number in seconds which represents how long the toast message will be displayed. The duration of toast must be >= 2 and duration/2 division remainder must be 0. i.e. valid values are 4,6,8,...

Example

@string/$noWriteRightsToast - message to display
4 - toast duration in seconds
[gn:act_toast]|[@string/$noWriteRightsToast,4]