어노테이션

@PluginMethod()
    public void isAvailable(PluginCall call) {
		//PluginCall call : TypeScript 단에서 전달한 인자를 넘겨받는다.

        JSObject ret = new JSObject();

        biometricManager = BiometricManager.from(getContext());

        switch (biometricManager.canAuthenticate()) {
            case BiometricManager.BIOMETRIC_SUCCESS:
                ret.put("isAvailable", true);
                break;
            default:
                ret.put("isAvailable", false);
                break;
        }

        ret.put("biometryType", getAvailableFeature());
        call.resolve(ret);
				//call.resolve(JsonObject); : IsAviaiable() 메소드는 Promise가 되어서 반환된다.
    }