iOS
Android
Unity
REST Api
Constants and types

The SDK defines a set of constants and aliases for some native data types.

It's strongly recommended to use the data type aliases in place of native ones when related to the SDK's job in order to keep the code clear and readable.

Constants

Returned values

ARENA_TASK

ARENA_ERROR

ARENA_CHALLENGE_CANCELLATION_REASON

ARENA_PLAYER_STATUS

 

Chat restrictions and administration role

BDArenaRestrictionMask

BDArenaAdministrationRole

 

Chat history

BDArenaChatHistoryFilterType

BDArenaChatHistoryItemType

 

Advertising banner formats

BDArenaAdvBannerFormat

BDArenaAdvFullscreenBannerFormat

 

Advertising clip playback completion reasons

BDArenaAdvAdClipDidFinishReason

 

Advertising clip countdown label position in view

BDArenaAdvAdClipCountdownLabelPosition

 

BDArenaConsoleController UI elements default values

BDArenaUIBaseColor

BDArenaUIButtonBaseColor

BDArenaUIAvatarImageBorderColor

BDArenaUIButtonTextBaseColor

BDArenaUITextColor

BDArenaUITextFieldBorderColor

BDArenaUITabbarItemTextColorSelected

BDArenaUITabbarItemTextColorUnselected

BDArenaUITextFieldFontColor

BDArenaUIAchievementRingColor

BDArenaUIFontNameNormal

BDArenaUIFontNameBold

BDArenaUIFontSize

 

Push notifications badge

BDArenaPushBadge

 

 

 

 

ARENA_TASK

parent type : NSUInteger

values :

ARENA_TASK_IDLE

ARENA_TASK_AUTH

ARENA_TASK_UPDATE

ARENA_TASK_REGISTER

ARENA_TASK_LOGOUT

ARENA_TASK_LOGIN

ARENA_TASK_GET_PLAYER_INFO

ARENA_TASK_GET_PLAYERS_INFO

 

 

 

ARENA_ERROR

parent type : NSUInteger

values :

ARENA_ERROR_SUCCESS

ARENA_ERROR_NOT_CONNECTED

ARENA_ERROR_EMPTY_MESSAGE

ARENA_ERROR_EMPTY_NICKNAME

ARENA_ERROR_PLAYERS_LIST_EMPTY

 

 

 

ARENA_CHALLENGE_CANCELLATION_REASON

parent type : NSUInteger

values :

ARENA_CHALLENGE_CANCELLATION_REASON_ORGANIZER_DID_CANCEL

ARENA_CHALLENGE_CANCELLATION_REASON_ORGANIZER_DID_DISCONNECT

ARENA_CHALLENGE_CANCELLATION_REASON_ALL_PLAYERS_GONE

 

 

 

ARENA_PLAYER_STATUS

parent type : NSUInteger

values :

ARENA_PLAYER_STATUS_NOT_CONNECTED

ARENA_PLAYER_STATUS_ONLINE

 

 

BDArenaAdministrationRole

parent type : uint8_t

values :

BDArenaAdministrationRoleUndefined
BDArenaAdministrationRoleDisabled
BDArenaAdministrationRoleEnabled

 

 


BDArenaChatHistoryFilterType

parent type : uint8_t

values : 

BDArenaChatHistoryFilterTypeAll

BDArenaChatHistoryFilterTypeMessages

BDArenaChatHistoryFilterTypeRoomEvents

BDArenaChatHistoryFilterTypeRestrictionsEvents

BDArenaChatHistoryFilterTypeProfileUpdateEvents

 

 

 

BDArenaChatHistoryItemType

parent type : uint8_t

values : 

BDArenaChatHistoryItemTypeMessage
BDArenaChatHistoryItemTypeJoinRoom
BDArenaChatHistoryItemTypeLeaveRoom
BDArenaChatHistoryItemTypeRestrictionsUpdate
BDArenaChatHistoryItemTypeProfileUpdate

 

 

BDArenaRestrictionMask

parent type : uint8_t

values :

BDArenaRestrictionMaskUndefined
BDArenaRestrictionMaskNone
BDArenaRestrictionMaskBan
BDArenaRestrictionMaskUnvoice

 

 

 

BDArenaAdvBannerFormat

parent type : NSUInteger

values :

BDArenaAdvBannerFormat320x53

BDArenaAdvBannerFormat300x250

BDArenaAdvBannerFormat468x60

BDArenaAdvBannerFormat728x90

 

 

 

BDArenaAdvFullscreenBannerFormat

parent type : NSUInteger

values :

BDArenaAdvFullscreenBannerSmartphone

BDArenaAdvFullscreenBannerTablet

 

 

BDArenaAdvAdClipDidFinishReason

parent type : NSUInteger

values :

BDArenaAdvAdClipDidFinishReasonPlaybackEnded

BDArenaAdvAdClipDidFinishReasonPlaybackSkipped

 

 

BDArenaAdvAdClipCountdownLabelPosition

parent type : NSUInteger

values :

BDArenaAdvAdClipCountdownLabelPositionTop

BDArenaAdvAdClipCountdownLabelPositionBottom

 

BDArenaUIBaseColor

value : [UIColor colorWithRed:(float)118/255 green:(float)9/255 blue:(float)0/255 alpha:1.0]

 

 

BDArenaUIButtonBaseColor

value : [UIColor colorWithRed:(float)118/255 green:(float)9/255 blue:(float)0/255 alpha:1.0]

 

 

BDArenaUIAvatarImageBorderColor

value : [UIColor colorWithRed:(float)102/255 green:(float)102/255 blue:(float)102/255 alpha:1.0]

 

 

BDArenaUIButtonTextBaseColor

value : [UIColor colorWithRed:(float)255/255 green:(float)255/255 blue:(float)255/255 alpha:1.0]

 

 

BDArenaUITextColor

value : [UIColor colorWithRed:(float)255/255 green:(float)255/255 blue:(float)255/255 alpha:1.0]

 

 

BDArenaUITextFieldBorderColor

value : [UIColor colorWithRed:(float)0/255 green:(float)0/255 blue:(float)0/255 alpha:1.0]

 

 

BDArenaUITabbarItemTextColorSelected

value : [UIColor colorWithRed:(float)255/255 green:(float)255/255 blue:(float)255/255 alpha:1.0]

 

 

BDArenaUITabbarItemTextColorUnselected

value : [UIColor colorWithRed:(float)153/255 green:(float)153/255 blue:(float)153/255 alpha:1.0]

 

 

BDArenaUITextFieldFontColor

value : [UIColor blackColor]

 

 

BDArenaUIAchievementRingColor

value : [UIColor redColor]

 

 

BDArenaUIFontNameNormal

value : @"Copperplate"

 

 

BDArenaUIFontNameBold

value : @"Copperplate-Bold"

 

 

BDArenaUIFontSize

value : 16

 

 

 

BDArenaPushBadge

parent type : NSUInteger

values :

BDArenaPushBadgeUnmodified

BDArenaPushBadgeIncrement

BDArenaPushBadgeRemove

 

 

 

 

 

Aliases

BDArenaTablesArray

alias of : NSMutableArray

 

 

BDArenaPlayersArray

alias of : NSMutableArray

 

 

BDArenaLeaderboardsArray

alias of : NSMutableArray

 

 

BDArenaScoresArray

alias of : NSMutableArray

 

 

BDArenaAchievementsArray

alias of : NSMutableArray 

 

 

BDArenaChatHistoryFilterTypeMask

alias of : int16_t