Enums

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 ValueDescription
UNAUTHORISEDReserved for future use
AUTHIndicates invalid API key
UNKNOWNUSERIndicates invalid userid
NOTINITIALIZEDReserved for future use
ERRORHANDLEDIndicates error is handled by sdk
NOTEMPLATEIndicates no template found
WONIndicates user has won
LOOSEIndicates user has lost
FAILUREIndicates failure in any method
TOKEN_EXPIREDIndicates token expiry
PLAY_COMPLETEDIndicates user completed playing compaign with leaderboard or scheduling
REWARD_INFOProvides reward information incase of getReward with request option as RequestOption.
REFERRAL_SUCCESSIndicates success of referral user registration
BADGE_INFOIndicates badges won after event / profile badges
NO_DAILY_STREAKIndicates no daily streak template available
DAILY_STREAK_REWARDSIndicates daily streak reward status for each day

GamizeEvent

All possible value for media related events

enum class GamizeEvent {
    MEDIAPLAY,
    MEDIAPAUSE;
}
Enum ValueDescription
MEDIAPLAYIndicates any audio/video started playing in sdk
MEDIAPAUSEIndicates 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 ValueDescription
REWARD_NAMEThis is used in getReward method to open template ui
REWARD_NAME_INFOThis is used in getReward method to get information related to compaign
REWARD_DAILY_STREAKThis is used in getReward method to open daily streak template ui related to compaign

Copyright

©2022 OnMobile Global Limited All Rights Reserved.