Playtime class
The entry point of adjoe Playtime SDK.
Constructors
- Playtime({BinaryMessenger? binaryMessenger})
-
Constructor for Playtime. The
binaryMessengernamed argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getStatus(
) → Future< PlaytimeStatus> - Recieve the status of SDK. Supported on Android and iOS.
-
getUserId(
) → Future< String?> - Returns the unique ID of the user by which he is identified within the Playtime services. Supported only on Android.
-
getVersion(
) → Future< String> - Returns the version code of the Playtime SDK. Supported only on Android.
-
getVersionName(
) → Future< String> - Returns the version name of the Playtime SDK. Supported only on Android.
-
hasAcceptedTOS(
) → Future< bool> - Checks whether the user has accepted the Playtime Terms of Service (TOS). Supported only on Android.
-
hasAcceptedUsagePermission(
) → Future< bool> - Checks whether the user has given access to the usage statistics. Supported only on Android.
-
init(
String apiKey, PlaytimeOptions? options) → Future< void> - Initializes the Playtime SDK. You must initialize the Playtime SDK before you can use any of its features. The initialization will run asynchronously in the background Supported only on Android
-
isInitialized(
) → Future< bool> - Checks whether the Playtime SDK is initialized. Supported only on Android.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendEvent(
int event, String extra, PlaytimeParams? params) → Future< void> - Sends a user event to Playtime. These events help to improve the accuracy of the app recommendations for the user. Supported only on Android.
-
setPlaytimeOptions(
PlaytimeOptions options) → Future< void> - Sets the Playtime options. Supported on both Android and iOS.
-
setUAParams(
PlaytimeParams params) → Future< void> - Sets the User-Acquisition (UA) parameters. Supported only on Android.
-
showCatalog(
PlaytimeParams? params) → Future< void> - Opens a new activity that shows catalog. Supported only on Android.
-
showCatalogWithOptions(
PlaytimeOptions options) → Future< void> - Opens a new activity that shows catalog. Supported on both Android and iOS.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>