MethodChannelContextSdk class

An implementation of ContextSdkPlatform that uses method channels.

Inheritance

Constructors

MethodChannelContextSdk()

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

calibrate(String flowName, int? maxDelay, Map<String, dynamic>? customSignals, ValueSetter<int> onContextReady) → void
override
contextAppendOutcomeMetadata(int contextId, Map<String, dynamic> metadata) → Future<void>
override
contextLog(int contextId, int outcome, bool alwaysLog) → Future<void>
override
contextShouldUpsell(int contextId) → Future<bool>
override
contextValidate(int contextId) → Future<String>
override
fetchContext(String flowName, int duration, Map<String, dynamic>? customSignals) → Future<int>
override
getSDKVersion() → Future<String>
override
instantContext(String flowName, int duration, Map<String, dynamic>? customSignals) → Future<int>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optimize(String flowName, int? maxDelay, Map<String, dynamic>? customSignals, ValueSetter<int> onGoodMoment) → void
override
recentContext(String flowName) → Future<int?>
override
releaseContext(int contextId) → Future<void>
override
setGlobalCustomSignals(Map<String, dynamic> customSignals) → Future<void>
override
setup(String licenseKey) → Future<bool>
override
toString() → String
A string representation of this object.
inherited
trackEvent(String eventType, String eventName, Map<String, dynamic> customSignals) → Future<void>
override

Operators

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