Пример #1
0
 public void OnStartTrackingLocation()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.ACCESS_FINE_LOCATION, StartLocationTacking,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.ACCESS_FINE_LOCATION));
 }
Пример #2
0
 public void OnPickVideoFileCamera()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.CAMERA, RecordVideo,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.CAMERA));
 }
Пример #3
0
 public void OnStartRecording()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.RECORD_AUDIO, StartRecording,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.RECORD_AUDIO));
 }
Пример #4
0
 public void OnTakePhoto()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.CAMERA, TakePhoto,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.CAMERA));
 }
Пример #5
0
 public void OnPickContactFromAddressBook()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.READ_CONTACTS, PickContact,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.READ_CONTACTS));
 }
Пример #6
0
 public void OnPlaceCall()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.CALL_PHONE, () => AGDialer.PlacePhoneCall(PhoneNumber),
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.CALL_PHONE));
 }
 public void OnSendSmsSilentlyClick()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.SEND_SMS, () => { AGShare.SendSmsSilently("123123123", "Silent Message"); },
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.SEND_SMS));
 }
 public void OnFlashlightOn()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.CAMERA, AGFlashLight.Enable, () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.CAMERA));
 }