PICO Platform Unity SDK
Pico.Platform Namespace Reference

Classes

class  AchievementsService
 
class  ApplicationOptions
 
class  ApplicationService
 
class  AssetFileService
 
class  ChallengesService
 
class  CLIB
 
class  CommonParsers
 
class  CoreService
 
class  IAPService
 
class  InviteOptions
 
class  LeaderboardService
 
class  Looper
 
class  MarshalUtil
 
class  MatchmakingOptions
 
class  MatchmakingService
 
class  Message
 
class  MessageQueue
 
class  NetworkService
 
class  NotificationService
 
class  PresenceOptions
 
class  PresenceService
 
class  PtrArray
 
class  PtrManager
 
class  RoomOptions
 
class  RoomService
 
class  RtcAudioPropertyOptions
 
class  RtcGetTokenOptions
 
class  RtcRoomOptions
 
class  RtcService
 
class  RtcStreamSyncInfoOptions
 
class  Runner
 
class  ShareMediaOptions
 
class  SportService
 
class  Task
 
class  TimeUtil
 
class  UserService
 
class  UTF8Marshaller
 
class  Util
 

Enumerations

enum  AchievementType { Unknown = 0 , Simple = 1 , Count = 2 , Bitfield = 3 }
 
enum  AchievementWritePolicy { Unknown = 0 , Client = 1 , Server = 2 }
 
enum  KVPairType { String = 0 , Int = 1 , Double = 2 , Unknown = 3 }
 
enum  MatchmakingCriterionImportance {
  Required = 0 , High = 1 , Medium = 2 , Low = 3 ,
  Unknown = 4
}
 
enum  ChallengeCreationType { Unknown = 0 , UserCreated = 1 , DeveloperCreated = 2 }
 
enum  ChallengeVisibility { Unknown = 0 , InviteOnly = 1 , Public = 2 , Private = 3 }
 
enum  ChallengeViewerFilter {
  Unknown = 0 , AllVisible = 1 , Participating = 2 , Invited = 3 ,
  ParticipatingOrInvited = 4
}
 
enum  LeaderboardFilterType { None = 0 , Friends = 1 , Unknown = 2 , UserIds = 3 }
 
enum  LeaderboardStartAt { Top = 0 , CenteredOnViewer = 1 , CenteredOnViewerOrTop = 2 , Unknown = 3 }
 
enum  RoomJoinability {
  Unknown = 0 , AreIn = 1 , AreKicked = 2 , CanJoin = 3 ,
  IsFull = 4 , NoViewer = 5 , PolicyPrevents = 6
}
 
enum  RoomJoinPolicy {
  None = 0 , Everyone = 1 , FriendsOfMembers = 2 , FriendsOfOwner = 3 ,
  InvitedUsers = 4 , Unknown = 5
}
 
enum  RoomType { Unknown = 0 , Matchmaking = 1 , Moderated = 2 , Private = 3 }
 
enum  GameInitializeResult {
  Success = 0 , Uninitialized = 1 , NetworkError = 2 , InvalidCredentials = 3 ,
  ServiceNotAvaliable = 4 , Unknown = 5 , InvalidServerAddr = 6 , DupInitialize = 7
}
 
enum  RoomMembershipLockStatus { Unknown = 0 , Lock = 1 , Unlock = 2 }
 
enum  UserOrdering { None = 0 , PresenceAlphabetical = 1 }
 
enum  AddonsType { Invalid = -1 , Durable = 0 , Consumable = 1 , Subscription = 2 }
 
enum  UserPresenceStatus { Unknown = 0 , OnLine = 1 , OffLine = 2 }
 
enum  Gender { Unknown = 0 , Male = 1 , Female = 2 }
 
enum  AssetFileDownloadCompleteStatus { Downloading = 0 , Succeed = 1 , Failed = 2 }
 
enum  DiscountType { Invalid = -1 , Null = 0 , FreeTrial = 1 , Discount = 2 }
 
enum  LaunchType {
  Unknown = 0 , Normal = 1 , RoomInvite = 2 , Deeplink = 4 ,
  ChallengeInvite = 5
}
 
enum  LaunchResult {
  Unknown = 0 , Success = 1 , FailedRoomFull = 2 , FailedGameAlreadyStarted = 3 ,
  FailedRoomNotFound = 4 , FailedUserDeclined = 5 , FailedOtherReason = 6
}
 
enum  RtcMuteState { Off = 0 , On = 1 }
 
enum  RtcPauseResumeMediaType { Audio = 0 , Video = 1 , AudioAndVideo = 2 }
 
enum  RtcMediaStreamType { Audio = 1 , Video = 2 , Both = 3 }
 
enum  RtcEngineInitResult {
  Unknown = -999 , AlreadyInitialized = -1 , InvalidConfig = -2 , SdkNotInitialized = -3 ,
  Success = 0
}
 
enum  RtcEarMonitorMode { Off = 0 , On = 1 }
 
enum  RtcStreamIndex { Main = 0 , Screen = 1 }
 
enum  RtcSyncInfoStreamType { Audio = 0 }
 
enum  RtcScreenMediaType { VideoOnly = 0 , AudioOnly = 1 , VideoAndAudio = 2 }
 
enum  RtcAudioScenarioType {
  Music = 0 , HighQualityCommunication = 1 , Communication = 2 , Media = 3 ,
  GameStreaming = 4
}
 
enum  RtcAudioPlaybackDevice {
  Headset = 1 , EarPiece = 2 , SpeakerPhone = 3 , HeadsetBlueTooth = 4 ,
  HeadsetUsb = 5
}
 
enum  RtcRoomProfileType {
  Communication = 0 , LiveBroadcasting = 1 , Game = 2 , CloudGame = 3 ,
  LowLatency = 4
}
 
enum  RtcAudioSourceType { External = 0 , Internal = 1 }
 
enum  RtcVideoStreamScaleMode { Auto = 0 , Stretch = 1 , FitWithCropping = 2 , FitWithFilling = 3 }
 
enum  RtcVideoEncodePreference { Disabled = 0 , FrameRate = 1 , Quality = 2 , Balance = 3 }
 
enum  RtcVideoSourceType { External = 0 , Internal = 1 , EncodedWithAutoSimulcast = 2 , EncodedWithoutAutoSimulcast = 3 }
 
enum  RtcAudioSampleRate {
  Auto = -1 , F8000 = 8000 , F16000 = 16000 , F32000 = 32000 ,
  F44100 = 44100 , F48000 = 48000
}
 
enum  RtcAudioChannel { Auto = -1 , Mono = 1 , Stereo = 2 }
 
enum  RtcVideoFrameType {
  RawMemory = 0 , CVPixelBuffer = 1 , GLTexture = 2 , Cuda = 3 ,
  D3D11 = 4 , D3D9 = 5 , JavaFrame = 6 , VAAPI = 7
}
 
enum  RtcVideoPixelFormat {
  Unknown = 0 , I420 = 1 , NV12 = 2 , NV21 = 3 ,
  RGB24 = 4 , RGBA = 5 , ARGB = 6 , BGRA = 7 ,
  Texture2D = 0xde1 , TextureOES = 0x8d65
}
 
enum  RtcColorSpace {
  Unknown = 0 , YCbCrBT601LimitedRange = 1 , YCbCrBT601FullRange = 2 , YCbCrBT709LimitedRange = 3 ,
  YCbCrBT709FullRange = 4
}
 
enum  RtcVideoRotation { Degree0 = 0 , Degree90 = 90 , Degree180 = 180 , Degree270 = 270 }
 
enum  MatchmakingStatApproach { Unknown = 0 , Trailing = 1 , Swingy = 2 }
 
enum  MessageType {
  Unknown = -1 , PlatformInitializeAndroidAsynchronous = 1 , User_GetLoggedInUser = 10000 , User_GetAccessToken = 10001 ,
  User_Get = 10002 , User_LaunchFriendRequestFlow = 10003 , User_GetLoggedInUserFriends = 10004 , User_GetNextUserArrayPage = 10005 ,
  User_GetLoggedInUserFriendsAndRooms = 10006 , User_GetAuthorizedPermissions = 10007 , User_RequestUserPermissions = 10008 , User_GetRelations = 10009 ,
  Notification_Rtc_OnRoomStats = 10200 , Notification_Rtc_OnJoinRoom = 10201 , Notification_Rtc_OnLeaveRoom = 10202 , Notification_Rtc_OnUserLeaveRoom = 10203 ,
  Notification_Rtc_OnUserJoinRoom = 10204 , Notification_Rtc_OnConnectionStateChange = 10205 , Notification_Rtc_OnWarn = 10206 , Notification_Rtc_OnRoomWarn = 10207 ,
  Notification_Rtc_OnRoomError = 10208 , Notification_Rtc_OnError = 10209 , Notification_Rtc_OnUserStartAudioCapture = 10210 , Notification_Rtc_OnAudioPlaybackDeviceChanged = 10211 ,
  Notification_Rtc_OnRemoteAudioPropertiesReport = 10212 , Notification_Rtc_OnLocalAudioPropertiesReport = 10213 , Notification_Rtc_OnUserStopAudioCapture = 10214 , Notification_Rtc_OnUserMuteAudio = 10215 ,
  Notification_Rtc_OnMediaDeviceStateChanged = 10216 , Notification_Rtc_OnRoomMessageReceived = 10217 , Notification_Rtc_OnUserMessageReceived = 10218 , Notification_Rtc_OnTokenWillExpire = 10219 ,
  Notification_Rtc_OnStreamSyncInfoReceived = 10220 , Notification_Rtc_OnVideoDeviceStateChanged = 10221 , Notification_Rtc_OnFirstLocalVideoFrameCaptured = 10222 , Notification_Rtc_OnRoomBinaryMessageReceived = 10223 ,
  Notification_Rtc_OnLocalVideoSizeChanged = 10224 , Notification_Rtc_OnScreenVideoFrameSendStateChanged = 10225 , Notification_Rtc_OnUserBinaryMessageReceived = 10226 , Notification_Rtc_OnLocalVideoStateChanged = 10227 ,
  Notification_Rtc_OnUserMessageSendResult = 10228 , Notification_Rtc_OnUserUnPublishScreen = 10229 , Notification_Rtc_OnRoomMessageSendResult = 10230 , Notification_Rtc_OnUserPublishStream = 10231 ,
  Notification_Rtc_OnUserUnPublishStream = 10232 , Notification_Rtc_OnUserPublishScreen = 10233 , Rtc_GetToken = 10300 , Matchmaking_Browse2 = 10400 ,
  Matchmaking_Cancel2 = 10402 , Matchmaking_CreateAndEnqueueRoom2 = 10404 , Matchmaking_Enqueue2 = 10408 , Matchmaking_EnqueueRoom2 = 10410 ,
  Matchmaking_GetAdminSnapshot = 10411 , Matchmaking_GetStats = 10412 , Matchmaking_ReportResultInsecure = 10414 , Matchmaking_StartMatch = 10415 ,
  Room_CreateAndJoinPrivate = 10500 , Room_CreateAndJoinPrivate2 = 10501 , Room_Get = 10502 , Room_GetCurrent = 10503 ,
  Room_GetCurrentForUser = 10504 , Room_GetInvitableUsers = 10505 , Room_GetInvitableUsers2 = 10506 , Room_GetModeratedRooms = 10507 ,
  Room_GetNextRoomArrayPage = 10508 , Room_InviteUser = 10509 , Room_Join = 10510 , Room_Join2 = 10511 ,
  Room_KickUser = 10512 , Room_LaunchInvitableUserFlow = 10513 , Room_Leave = 10514 , Room_SetDescription = 10515 ,
  Room_UpdateDataStore = 10516 , Room_UpdateMembershipLockStatus = 10517 , Room_UpdateOwner = 10518 , Room_UpdatePrivateRoomJoinPolicy = 10519 ,
  Notification_Matchmaking_MatchFound = 10600 , Notification_Room_InviteAccepted = 10601 , Notification_Room_RoomUpdate = 10603 , Notification_Game_ConnectionEvent = 10604 ,
  Notification_Game_RequestFailed = 10605 , Notification_Game_StateReset = 10606 , Notification_GetNextRoomInviteNotificationArrayPage = 10607 , Notification_GetRoomInvites = 10608 ,
  Notification_MarkAsRead = 10609 , Notification_Challenge_LaunchByInvite = 10610 , PlatformGameInitializeAsynchronous = 10700 , Leaderboard_Get = 10800 ,
  Leaderboard_GetNextLeaderboardArrayPage = 10801 , Leaderboard_GetEntries = 10802 , Leaderboard_GetEntriesAfterRank = 10803 , Leaderboard_GetEntriesByIds = 10804 ,
  Leaderboard_GetNextEntries = 10805 , Leaderboard_GetPreviousEntries = 10806 , Leaderboard_WriteEntry = 10807 , Leaderboard_WriteEntryWithSupplementaryMetric = 10808 ,
  Achievements_AddCount = 10820 , Achievements_AddFields = 10821 , Achievements_GetAllDefinitions = 10822 , Achievements_GetAllProgress = 10823 ,
  Achievements_GetDefinitionsByName = 10824 , Achievements_GetNextAchievementDefinitionArrayPage = 10825 , Achievements_GetNextAchievementProgressArrayPage = 10826 , Achievements_GetProgressByName = 10827 ,
  Achievements_Unlock = 10828 , Challenges_Invite = 10850 , Challenges_Get = 10851 , Challenges_GetList = 10852 ,
  Challenges_GetEntries = 10853 , Challenges_GetEntriesAfterRank = 10854 , Challenges_GetEntriesByIds = 10855 , Challenges_Join = 10856 ,
  Challenges_Leave = 10857 , Challenges_LaunchInvitableUserFlow = 10858 , Application_LaunchOtherApp = 11001 , Presence_GetSentInvites = 11002 ,
  Presence_GetInvitableUsers = 11003 , Presence_SendInvites = 11004 , Presence_GetDestinations = 11005 , Presence_Clear = 11006 ,
  Presence_Set = 11007 , Notification_ApplicationLifecycle_LaunchIntentChanged = 11008 , Notification_Presence_JoinIntentReceived = 11009 , Application_LaunchOtherAppByPresence = 11011 ,
  Application_LaunchOtherAppByMessage = 11013 , Presence_ShareMedia = 11014 , Presence_LaunchInvitePanel = 11015 , Presence_SendCustomInvites = 11016 ,
  Application_LaunchStore = 11017 , Application_GetVersion = 11018 , IAP_GetProductsBySKU = 12001 , IAP_GetViewerPurchases = 12002 ,
  IAP_LaunchCheckoutFlow = 12003 , IAP_ConsumePurchase = 12004 , Sport_GetUserInfo = 12500 , Sport_GetDailySummary = 12501 ,
  Sport_GetSummary = 12502 , AssetFile_DeleteById = 13001 , AssetFile_DeleteByName = 13002 , AssetFile_DownloadById = 13003 ,
  AssetFile_DownloadByName = 13004 , AssetFile_DownloadCancelById = 13005 , AssetFile_DownloadCancelByName = 13006 , AssetFile_GetList = 13007 ,
  AssetFile_StatusById = 13008 , AssetFile_StatusByName = 13009 , AssetFile_GetNextAssetDetailsArrayPage = 13010 , Notification_AssetFile_DownloadUpdate = 13101 ,
  Notification_AssetFile_DeleteForSafety = 13102
}
 
enum  RtcJoinRoomType { First = 0 , Reconnected = 1 }
 
enum  RtcUserLeaveReasonType { Quit = 0 , Dropped = 1 }
 
enum  RtcMediaDeviceType { AudioUnknown = -1 , AudioRenderDevice = 0 , AudioCaptureDevice = 1 }
 
enum  RtcMediaDeviceState {
  Started = 1 , Stopped = 2 , RuntimeError = 3 , Added = 4 ,
  Removed = 5
}
 
enum  RtcMediaDeviceError {
  Ok = 0 , NoPermission = 1 , DeviceBusy = 2 , DeviceFailure = 3 ,
  DeviceNotFound = 4 , DeviceDisconnected = 5 , DeviceNoCallback = 6 , UnSupporttedFormat = 7
}
 
enum  RtcVideoDeviceType { Unknown = -1 , RenderDevice = 0 , CaptureDevice = 1 , ScreenCaptureDevice = 2 }
 
enum  RtcFirstFrameSendState { Sending = 0 , Sent = 1 , End = 2 }
 
enum  RtcLocalVideoStreamState { Stopped = 0 , Recording = 1 , Encoding = 2 , Failed = 3 }
 
enum  RtcLocalVideoStreamError {
  Ok = 0 , Failure = 1 , DeviceNoPermission = 2 , DeviceBusy = 3 ,
  DeviceNotFound = 4 , CaptureFailure = 5 , EncodeFailure = 6 , DeviceDisconnected = 7
}
 
enum  RtcStreamRemoveReason {
  Unpublish = 0 , PublishFailed = 1 , KeepLiveFailed = 2 , ClientDisconnected = 3 ,
  Republish = 4 , Other = 5
}
 
enum  GameConnectionEvent {
  Connected = 0 , Closed = 1 , Lost = 2 , Resumed = 3 ,
  KickedByRelogin = 4 , KickedByGameServer = 5 , GameLogicError = 6 , Unknown = 7
}
 Describes the various events possible on networking.
 
enum  GameRequestFailedReason {
  None = 0 , NotInitialized = 1 , Uninitialized = 2 , CurrentlyUnavailable = 3 ,
  CurrentlyUnknown = 4
}
 Describes the various reason of failed requests to platform game service.
 
enum  SportTarget { LoseFat = 0 , KeepFit = 1 }
 The sport target of the user.
 
enum  PeriodType {
  Invalid = -1 , None = 0 , Hour = 1 , Day = 2 ,
  Week = 3 , Month = 4 , Quarter = 5 , Year = 6
}
 
enum  UserRelationType {
  Unknown = 0 , IsFriend = 1 , NotFriend = 2 , Blocked = 3 ,
  BlockedBy = 4 , ApplyingFriend = 5
}
 
enum  PlatformInitializeResult {
  Unknown = -999 , NetError = -6 , MissingImpl = -5 , LoadImplFailed = -4 ,
  InternalError = -3 , InvalidParams = -2 , AlreadyInitialized = -1 , Success = 0
}
 
enum  ShareMediaType { Video = 0 , Image = 1 }
 
enum  ShareAppType { Douyin = 0 }
 
enum  RtcPrivilege { PublishStream = 0 , PublishAudioStream = 1 , PublishVideoStream = 2 , SubscribeStream = 3 }
 
enum  RtcConnectionState {
  Disconnected = 1 , Connecting = 2 , Connected = 3 , Reconnecting = 4 ,
  Reconnected = 5 , Lost = 6
}
 

Functions

delegate Message MessageParser (IntPtr ptr)
 

Enumeration Type Documentation

◆ ChallengeVisibility

Enumerator
InviteOnly 

Only those invited can participate in it. Everyone can see it

Public 

Everyone can participate and see this challenge

Private 

Only those invited can participate and see this challenge