Esempio n. 1
0
 public void OnStartTrackingLocation()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.ACCESS_FINE_LOCATION, StartLocationTacking,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.ACCESS_FINE_LOCATION));
 }
Esempio n. 2
0
 public void OnPickVideoFileCamera()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.CAMERA, RecordVideo,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.CAMERA));
 }
Esempio n. 3
0
 public void OnStartRecording()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.RECORD_AUDIO, StartRecording,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.RECORD_AUDIO));
 }
Esempio n. 4
0
 public void OnTakePhoto()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.CAMERA, TakePhoto,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.CAMERA));
 }
Esempio n. 5
0
 public void OnPickContactFromAddressBook()
 {
     AGPermissions.ExecuteIfHasPermission(AGPermissions.READ_CONTACTS, PickContact,
                                          () => ExampleUtil.ShowPermissionErrorToast(AGPermissions.READ_CONTACTS));
 }
Esempio n. 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));
 }