Loyalty Management Mobile SDK for Android Classes
The Android classes organize the Loyalty Management Mobile SDK’s functionalities and data structures. When developing mobile apps using the SDK, these classes provide components, services, or features with which you can interact.
| Required Editions |
|---|
| Available in: all editions that have Loyalty Management enabled |
-
The
Loggerclass provides a standardized way to save debug, verbose, info, or error log messages. -
Create authentication network requests by using the
LoyaltyClientclass.LoyaltyClientusesForceAuthenticator, which is an interface that defines the methods to handle access tokens in the Salesforce API.LoyaltyClientcreates a retrofit instance to invoke Force APIs. -
Manage requests related to loyalty program and interactions between the application and the APIs. The
LoyaltyAPIManagerclass manages requests related to loyalty programs using theForceAPI and manages authentication by using the instance of ForceAuthenticator that was injected at the time of initialization. Use this class to manage asynchronous requests by using Retrofit and Kotlin coroutines. -
The
LoyaltyApiInterfaceclass defines the interface for creating, formatting, and sending REST requests to the Salesforce service. This class stores REST API call definitions for all Loyalty API.