Exemple #1
0
        private bool CallNativeBoolMethod(IntPtr methodPtr, object[] param)
        {
            if (androidJavaObject == null)
            {
                return(false);
            }

            return(AndroidUtils.CallNativeBoolMethod(AndroidJavaObjectPtr, methodPtr, param));
        }
Exemple #2
0
        public bool CheckPermission()
        {
            if (androidJavaObject == null)
            {
                return(false);
            }

            return(AndroidUtils.CallNativeBoolMethod(AndroidJavaObjectPtr, HasPermissionPtr, EmptyParams));
        }
        private static bool IsPermissionGranted(string permissionName)
        {
            if (GetPermissionsService() == null)
            {
                return(false);
            }

            return(AndroidUtils.CallNativeBoolMethod(
                       permissionObjectPtr, IsPermissionGrantedPtr, new object[] { permissionName }));
        }