Example #1
0
        /// <summary>
        /// 由特定平台实现的检查权限后获取手机号码
        /// </summary>
        /// <returns></returns>
        protected virtual async Task <string?> PlatformGetPhoneNumberAsync()
        {
            var status = await pf.CheckAndRequestAsync(p1);

            if (status.IsOk())
            {
                return(PlatformGetPhoneNumber());
            }
            return(null);
        }
        /// <summary>
        /// 由特定平台实现的检查权限后获取手机号码
        /// </summary>
        /// <returns></returns>
        protected virtual async Task <string?> PlatformGetPhoneNumberAsync()
        {
            var status = await p.CheckAndRequestAsync(IPermissions.IGetPhoneNumber.Instance);

            if (status.IsOk())
            {
                return(PlatformGetPhoneNumber());
            }
            return(null);
        }