PacketSdkPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • PacketSdkPlatform
Implementers

Constructors

PacketSdkPlatform()
Constructs a PacketSdkPlatform.

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

initialize(String appKey) Future<void>
isOptedIn() Future<bool>
isRunning() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optIn() Future<void>
optOut() Future<void>
requestConsent() Future<void>
requestConsentWithStyle({required int textColor, required int linksColor, required int primaryColor, required int secondColor}) Future<void>
setBackground(bool isBackground) Future<void>
setEnableLogging(bool enableLogging) Future<void>
setNotification(String title, String body, String icon) Future<void>
setNotificationId(int id) Future<void>
setStatusListener(dynamic statusListener(int code, String msg)) Future<void>
start() Future<void>
stop() Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance PacketSdkPlatform
The default instance of PacketSdkPlatform to use.
getter/setter pair