コード例 #1
0
 public void RequestActivityPermission()
 {
     LocationCommon.SetPermission(
         new string[] { "com.huawei.hms.permission.ACTIVITY_RECOGNITION" },
         new string[] { "android.permission.ACTIVITY_RECOGNITION" }
         );
 }
コード例 #2
0
 public void SetPermission()
 {
     LocationCommon.SetPermission(
         new string[] { ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION },
         new string[] { ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION, ACCESS_BACKGROUND_LOCATION }
         );
 }