Mobile SDK APIs
less than a minute
This section walks you through the different APIs provided by the RudderStack Android (Kotlin) and iOS (Swift) SDKs:
Event APIs
The Android (Kotlin) and iOS (Swift) SDKs support the following standard event APIs in accordance with the RudderStack Event Spec:
| API | Description |
|---|---|
| Track | Tracks user actions along with their associated properties. |
| Identify | Identifies a user and associate them to their actions. |
| Screen | Records whenever user views their mobile screen and captures any relevant information about the screen. |
| Group | Links an identified user with a group and record any traits associated with that group. |
| Alias | Merges different identities of a known user. |
| Reset | Clears the user ID and traits. |
Other APIs
In addition to the standard event APIs, the Android (Kotlin) and iOS (Swift) SDKs also support the below APIs for specific use cases:
| API | Description |
|---|---|
| Device Mode Integration APIs | Access destination instances and register callbacks for device mode integrations. |
| User Identity APIs | Retrieves the user ID, anonymous ID, and user traits persisted by the SDK. |
| Flush API | Manually flushes any events stored in the SDK. |
| Logging APIs | Lets you monitor and debug the SDK’s behavior with fine-grained control. |
| Shutdown API | Stops all the operations associated with the SDK and frees up resources. |