Registration - LOMENT-SDK/sdk-cashew-android GitHub Wiki

Registration

The first step to using the Cashew SDK is to register a new user on the server. This is accomplished by callin register() and passing in valid name, password, email, phone, and country code:

new UserManager().register(
    context, 
    userName, 
    password, 
    email, 
    mobileNumber, 
    country_code, 
    country_abbr, 
    new RegistrationCallback() {...}

The registration results are handled in the RegistrationCallback callback:

@Override
public void onRegistrationSuccess() {
	// Handle registration success
}

@Override
public void onRegistrationError(CNError error) {
	// Handle registration error
}