Client class
The main client class for interacting with the Optimus service.
Properties
- enableAndroidId ↔ bool
-
Flag to enable or disable Android ID tracking.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger ↔ Logger
-
Logger instance for logging SDK events.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cleanup(
) → void - Closes the internal http client.
-
disableAndroidIdTracking(
) → void - Disables Android ID tracking.
-
emitAnalytics(
Map< String, dynamic> request) → Future<void> - Emits analytics data to the Optimus API.
-
enableAndroidIdTracking(
) → void - Enables Android ID tracking.
-
getImageBytes(
String imageUrl) → Future< Uint8List> - Retrieves image bytes from a given URL.
-
handshake(
) → Future< void> - Performs a handshake with the Optimus API to verify the app.
-
invalidateToken(
InvalidateTokenRequest request) → Future< void> - Invalidates a push token with the Optimus API.
-
logRequest(
{required String path, required String message}) → void - Logs a request message.
-
logResponse(
{required String path, required int responseCode, required String responseBody}) → void - Logs a response message.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerToken(
PushTokenRegistrationRequest request) → Future< void> - Registers a new push token with the Optimus API.
-
setAppStatus(
) → Future< void> - Sets the app status and tracks install/update events.
-
setPushOptIn(
) → Future< void> - Tracks the push opt-in event.
-
toString(
) → String -
A string representation of this object.
inherited
-
trackEvent(
String eventName, [OptimusProperties? properties]) → Future< void> - Tracks an event with the Optimus API.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited