Types & Events#
flet_onesignal.types
#
Types, enums, and dataclasses for flet-onesignal.
This module defines all event types, enums, and data structures used throughout the flet-onesignal SDK.
Classes#
OSErrorEvent
dataclass
#
OSInAppMessageClickEvent
dataclass
#
Event fired when a user clicks on an in-app message.
Example
Attributes#
action_id
class-attribute
instance-attribute
#
The action ID defined in the OneSignal dashboard.
closing_message
class-attribute
instance-attribute
#
True if the click action closes the in-app message.
result
property
#
Get the click result as an OSInAppMessageClickResult object.
url
class-attribute
instance-attribute
#
The URL associated with the click action, if any.
url_target
class-attribute
instance-attribute
#
The URL target (_blank, _self, etc.).
OSInAppMessageClickResult
dataclass
#
Result of an in-app message click action.
Attributes#
action_id
class-attribute
instance-attribute
#
The action ID defined in the OneSignal dashboard.
closing_message
class-attribute
instance-attribute
#
True if the click action closes the in-app message.
url
class-attribute
instance-attribute
#
The URL associated with the click action, if any.
url_target
class-attribute
instance-attribute
#
The URL target (_blank, _self, etc.).
OSInAppMessageDidDismissEvent
dataclass
#
OSInAppMessageDidDisplayEvent
dataclass
#
OSInAppMessageWillDismissEvent
dataclass
#
OSInAppMessageWillDisplayEvent
dataclass
#
OSLogLevel
#
OSNotificationClickEvent
dataclass
#
Event fired when a user clicks on a notification.
Example
OSNotificationWillDisplayEvent
dataclass
#
Event fired when a notification is about to be displayed in foreground.
Use this to intercept and optionally suppress notification display when the app is in the foreground.