Enums used in initialization and listeners
GamizeLocale
All supported languages can be selected from this enum. This is optional
enum class GamizeLocale {
ENGLISH,
BANGLA;
}
Environment
All possible values available for Environment.
This facilitates client to test sdk in seperate environment.This is optional and default is PRODUCTION
enum class Environment {
DEV,
STAGING,
PRODUCTION;
}
ResultStatus
All possible ResultStatus when intializing SDK or calling any SDK method
enum class ResultStatus {
UNAUTHORISED,
AUTH,
UNKNOWNUSER,
NOTINITIALIZED,
ERRORHANDLED,
NOTEMPLATE,
WON,
LOOSE,
FAILURE,
TOKEN_EXPIRED,
PLAY_COMPLETED,
REWARD_INFO,
REFERRAL_SUCCESS,
BADGE_INFO,
NO_DAILY_STREAK,
DAILY_STREAK_REWARDS
}
Enum Value | Description |
---|---|
UNAUTHORISED | Reserved for future use |
AUTH | Indicates invalid API key |
UNKNOWNUSER | Indicates invalid userid |
NOTINITIALIZED | Reserved for future use |
ERRORHANDLED | Indicates error is handled by sdk |
NOTEMPLATE | Indicates no template found |
WON | Indicates user has won |
LOOSE | Indicates user has lost |
FAILURE | Indicates failure in any method |
TOKEN_EXPIRED | Indicates token expiry |
PLAY_COMPLETED | Indicates user completed playing compaign with leaderboard or scheduling |
REWARD_INFO | Provides reward information incase of getReward with request option as RequestOption. |
REFERRAL_SUCCESS | Indicates success of referral user registration |
BADGE_INFO | Indicates badges won after event / profile badges |
NO_DAILY_STREAK | Indicates no daily streak template available |
DAILY_STREAK_REWARDS | Indicates daily streak reward status for each day |
GamizeEvent
All possible value for media related events
enum class GamizeEvent {
MEDIAPLAY,
MEDIAPAUSE;
}
Enum Value | Description |
---|---|
MEDIAPLAY | Indicates any audio/video started playing in sdk |
MEDIAPAUSE | Indicates any audio/video stopped playing in sdk |
RequestOption
All possible values for getReward
enum class RequestOption {
REWARD_NAME,
REWARD_NAME_INFO,
REWARD_DAILY_STREAK
}
Enum Value | Description |
---|---|
REWARD_NAME | This is used in getReward method to open template ui |
REWARD_NAME_INFO | This is used in getReward method to get information related to compaign |
REWARD_DAILY_STREAK | This is used in getReward method to open daily streak template ui related to compaign |