RudderSdkFlutterIos class

iOS implementation of the RudderStack SDK platform interface.

This class handles all analytics events and configuration for iOS devices, providing native iOS features like device token handling, advertising ID management, and iOS-specific session tracking.

Inheritance
  • Object
  • PlatformInterface
  • RudderSdkPlatform
  • RudderSdkFlutterIos

Constructors

RudderSdkFlutterIos.new()

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

alias(String newId, {RudderOption? options}) → void
Creates an alias for the current user with a newId.
override
endSession() → void
Manually ends the current user session.
override
getRudderContext() Future<Map?>
Retrieves the current RudderStack context information.
override
getSessionId() Future<int?>
Retrieves the current session ID.
override
group(String groupId, {RudderTraits? groupTraits, RudderOption? options}) → void
Associates the current user with a group.
override
identify(String userId, {RudderTraits? traits, RudderOption? options}) → void
Identifies a user with the given userId and optional traits.
override
initialize(String writeKey, {RudderConfig? config, RudderOption? options}) → void
Initializes the RudderStack SDK with the provided write key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optOut(bool optOut) → void
Sets the opt-out status for the current user.
override
putAdvertisingId(String advertisingId) → void
Sets the advertising ID for the current device.
override
putAnonymousId(String anonymousId) → void
Sets a custom anonymous ID for the current user.
override
putDeviceToken(String deviceToken) → void
Sets the device token for push notifications.
override
reset({bool clearAnonymousId = false}) → void
Resets the user identity and clears stored user data.
override
screen(String screenName, {String? category, RudderProperty? properties, RudderOption? options}) → void
Records a screen view with the given screenName.
override
startSession({int? sessionId}) → void
Manually starts a new user session.
override
toString() String
A string representation of this object.
inherited
track(String eventName, {RudderProperty? properties, RudderOption? options}) → void
Tracks an event with the given eventName and optional properties.
override

Operators

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

Static Methods

registerWith() → void
Registers this iOS implementation as the platform instance.