MethodChannelPacketSdk class

An implementation of PacketSdkPlatform that uses method channels.

Inheritance

Constructors

MethodChannelPacketSdk()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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