app/lib/tiTouchIdHandler.js
// Determine current availability from a device perspective.
Determine current availability from a device perspective.
Determine current availability from a device perspective .
function isTouchIdAvailable() {
		var canAuthenticate = false;
		if (tiTouchId) {
			var deviceCanAuthenticateResult = tiTouchId.deviceCanAuthenticate();
			canAuthenticate = deviceCanAuthenticateResult.canAuthenticate;
			if (!canAuthenticate) {
				console.error('[tiTouchIdHandler] - isTouchIdAvailable() - deviceCanAuthenticateResult=' + JSON.stringify(deviceCanAuthenticateResult));
			}
		}
		return canAuthenticate;
	}
function isTouchIdAvailable ( ) { var canAuthenticate = false ; if ( tiTouchId ) { var deviceCanAuthenticateResult = tiTouchId . deviceCanAuthenticate ( ) ; canAuthenticate = deviceCanAuthenticateResult . canAuthenticate ; if ( ! canAuthenticate ) { console . error ( '[tiTouchIdHandler] - isTouchIdAvailable() - deviceCanAuthenticateResult=' + JSON . stringify ( deviceCanAuthenticateResult ) ) ; } } return canAuthenticate ; }
Determine current availability from a device perspective.
Determine current availability from a device perspective .