DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс BiosPrivacyService

BiosPrivacyService is used to query privacy permissions for a target user/s. Подробнее...

Закрытые члены

proto native EBiosError GetPermissionsAsync (array< string > uid_list, array< EBiosPrivacyPermission > permission_list)
 Query for privacy permissions.
 
proto native EBiosError GetPrivilegeAsync (EBiosPrivacyPrivilege privilege, bool try_resolution)
 Query for privileges.
 
void OnPermissions (BiosPrivacyUidResultArray result_list, EBiosError error)
 Async callback for GetPermissionsAsync.
 
void OnPrivilege (EBiosPrivacyPrivilege privilege, EBiosError error)
 Async callback for GetPrivilegeAsync.
 

Подробное описание

BiosPrivacyService is used to query privacy permissions for a target user/s.

Методы

◆ GetPermissionsAsync()

proto native EBiosError GetPermissionsAsync ( array< string > uid_list,
array< EBiosPrivacyPermission > permission_list )
private

Query for privacy permissions.

The async result is returned in the OnPermissions callback. Expected errors: BAD_PARAMETER - if atleast one of the permissions is not supported on the current platform, or atleast one of the input arrays is NULL.

Аргументы
uid_listlist of target user Uid's for which to query privacy permissions.
permission_listlist of requested permissions for each target user.
Возвращает
EBiosError indicating if the async operation is pending.

◆ GetPrivilegeAsync()

proto native EBiosError GetPrivilegeAsync ( EBiosPrivacyPrivilege privilege,
bool try_resolution )
private

Query for privileges.

The async result is returned in the OnPrivilege callback. Expected errors: BAD_PARAMETER - if atleast one of the privileges is not supported on the current platform, PURCHASE_REQUIRED, BANNED, NOT_ALLOWED - the privilege is granted,

Аргументы
privilegethe requested privilege.
tryResolutionXbox: show system GUI with error msg and attempts to resolve it if possible.
Возвращает
EBiosError indicating if the async operation is pending.

◆ OnPermissions()

void OnPermissions ( BiosPrivacyUidResultArray result_list,
EBiosError error )
inlineprivate

Async callback for GetPermissionsAsync.

Аргументы
result_listlist of results for each requested user. NULL if failed.
errorerror indicating success or fail of the async operation.
92 {
93 if (result_list == null)
94 {
95 Print("biapi privacy error: " + error);
96 return;
97 }
98
100 }
Definition OnlineServices.c:2
static void OnPermissionsAsync(BiosPrivacyUidResultArray result_list, EBiosError error)
Definition OnlineServices.c:327
Definition EntityAI.c:95
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки OnlineServices::OnPermissionsAsync() и Print().

◆ OnPrivilege()

void OnPrivilege ( EBiosPrivacyPrivilege privilege,
EBiosError error )
inlineprivate

Async callback for GetPrivilegeAsync.

Аргументы
privilegethe requested privilege.
errorerror indicating success or fail of the async operation.
108 {
109 switch ( privilege )
110 {
111 case EBiosPrivacyPrivilege.MULTIPLAYER_GAMEPLAY:
112 {
114 break;
115 }
116 case EBiosPrivacyPrivilege.COMMUNICATE_VOICE:
117 {
119 break;
120 }
121 }
122 }
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege represents possible privacy privileges.
Definition BiosPrivacyService.c:18
static void OnLoadMPPrivilege(EBiosError err)
Definition OnlineServices.c:442
static void OnLoadVoicePrivilege(EBiosError err)
Definition OnlineServices.c:462

Перекрестные ссылки OnlineServices::OnLoadMPPrivilege() и OnlineServices::OnLoadVoicePrivilege().


Объявления и описания членов класса находятся в файле: