跳到主要内容

用户设置家长认证状态(ComplianceSetParentCertificateStatus)

AndroidiOSWindows
如果您使用的是 Unreal Engine,请参见 Unreal Engine SDK 的 ComplianceSetParentCertificateStatus

家长是否同意认证。

函数定义

public static void ComplianceSetParentCertificateStatus(ComplianceParentCertificateStatus status);

public enum ComplianceParentCertificateStatus
{
Deny = -1,
UnKnown = 0,
Agree = 1,
}

入参说明

参数类型说明
statusComplianceParentCertificateStatus-1:拒绝
0:未设置
1:同意

回调处理

回调处理接口是 ComplianceResultObserver。回调数据结构是 ComplianceResult

回调 ID 是 INTL_COMPLIANCE_SET_PARENT_CERTIFICATE_STATUS

代码示例

ComplianceParentCertificateStatus kstatus = ComplianceParentCertificateStatus.UnKnown;
// kstatus = ComplianceParentCertificateStatus.Deny;
// kstatus = ComplianceParentCertificateStatus.Agree;
INTLAPI.ComplianceSetParentCertificateStatus(kstatus);