Pal class
Constructors
- Pal({HttpClient? httpClient, PalEventApi? eventApi, PalSessionApi? sessionApi, PalSdk? sdk})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- triggeredVideo ↔ PalVideoTrigger?
-
if a video is currently playing, this is not null
getter/setter pair
Methods
-
clearSession(
) → Future< void> - reset the stored session UID from the local storage call it whenever your user logs out
-
getSession(
) → Future< String?> - returns the current session UID used by Pal to identify the current user
-
initialize(
PalOptions palOptions, ) → Future< void> -
initialize the pal sdk
a session UID string is generated by the server to identify the current user
navigatorKey
the navigator key we needs to show the video as an overlay -
logButtonClick(
BuildContext buildContext, String name) → Future< void> -
logCurrentScreen(
BuildContext buildContext, String name) → Future< void> - send the screen view event to the server if a video is triggered, it will be returned depending on configuration
-
logLogin(
BuildContext buildContext) → Future< void> -
logSignout(
BuildContext buildContext) → Future< void> -
logSignup(
BuildContext buildContext) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setSession(
String sessionId) → Future< void> - bind the user to an existing session id
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited