Verify as an adult

If your game needs verification of user age, utilize adult verification feature, one of . User data is required to prove adult, so ensure to authenticate users right after sign-in.

Note

Adult authentication is supported only in Korea. To use the adult authentication for Android, you need to use Android 5.0 (API level 21) or higher versions. Please set minSdkVersion as 21 or higher.

For adult verification, implement showAdultConfirm() method in the AuthV4 class.

Followings are sample codes to request adult verification to users.

API Reference: hive.AuthV4.showAdultConfirm

using hive;    
    AuthV4.showAdultConfirm((ResultAPI result) => {    
         if (result.isSuccess()) {    
             // API call successful    
         }    
});
#include "HiveAuthV4.h"

FHiveAuthV4::ShowAdultConfirm(FHiveAuthV4OnAdultConfirmDelegate::CreateLambda([this](const FHiveResultAPI& Result) {
        if (Result.IsSuccess()) {
                // API call successful
        }
}));

API Reference: AuthV4::showAdultConfirm

#include <HIVE_SDK_Plugin/HIVE_CPP.h>    
    using namespace std;    
    using namespace hive;    
    AuthV4::showAdultConfirm([=](ResultAPI result) {    
             if (result.isSuccess()) {    
                 // API call successful    
             }    
         }    
);

API Reference: AuthV4.showAdultConfirm

import com.hive.AuthV4    
    import com.hive.ResultAPI    

    AuthV4.showAdultConfirm(object : AuthV4.AuthV4AdultConfirmListener {    
            override fun onAuthV4AdultConfirm(result: ResultAPI) {    
                if (result.isSuccess) {    
                    // API call successful    
                }    
            }    
})

API Reference: AuthV4.INSTANCE.showAdultConfirm

import com.hive.AuthV4;    
    import com.hive.ResultAPI;    
    AuthV4.INSTANCE.showAdultConfirm(result -> {    
         if (result.isSuccess()) {    
             // API call successful    
         }    
});

API Reference: AuthV4Interface.showAdultConfirm

import HIVEService    
    AuthV4Interface.showAdultConfirm() { result in    
        if result.isSuccess() {    
        // API call successful    
        }    
}

API Reference: HIVEAuthV4:showAdultConfirm

#import <HIVEService/HIVEService-Swift.h>    
    [HIVEAuthV4 showAdultConfirm: ^(HIVEResultAPI *result) {    
         if ([result isSuccess]) {    
             // API call successful    
         }    
}];