Search
Link Search Menu Expand Document
Kony Quantum is now HCL Volt MX. See Revised Terminology. Current Quantum users, see the important note about API naming.

voltmx.signInWithApple Namespace

The SignInWithApple API contains the voltmx.signInWithApple Namespace and the following API elements:

Functions

The voltmx.signInWithApple namespace provides the following function:

voltmx.signInWithApple.evaluateCredentialStateforUserID

The evaluateCredentialStateforUserID method is used to get the current state of an opaque user ID that was specified previously.

Syntax

voltmx.signInWithApple.evaluateCredentialStateforUserID(<userID>,<callback>);

Input Parameters

ParameterDescription
userIDAn opaque user identifier that identifies the state of the SignInWithApple widget.
callbackA callback function that returns one of the following 3 possible states:
voltmx.signInWithApple.CREDENTIAL_STATE_REVOKED
voltmx.signInWithApple.CREDENTIAL_STATE_AUTHORIZED
voltmx.signInWithApple.CREDENTIAL_STATE_NOT_FOUND

Example

voltmx.signInWithApple.evaluateCredentialStateforUserID(result.user,callback3);  
function callback3(result) {  
    if(result == voltmx.signInWithApple.CREDENTIAL_STATE_REVOKED) {  
        alert("I AM Revoked");  
        alert("CredState :" + result);  
    }  
    if(result == voltmx.signInWithApple.CREDENTIAL_STATE_AUTHORIZED) {  
        alert("I AM Authorized");  
        alert("CredState :" + result);  
    }  
    if(result == voltmx.signInWithApple.CREDENTIAL_STATE_NOT_FOUND) {  
        alert("I AM Not found");  
        alert("CredState :" + result);  
    }  
}

Return Value

String - Reference (CREDENTIAL_STATE_REVOKED)

Platform Availability

iOS 13 or later