public void onClick(AndroidJavaObject dialog, int which) { if (_onClickVoid != null) { GoodiesSceneHelper.Queue(_onClickVoid); } if (_onClickInt != null) { GoodiesSceneHelper.Queue(() => _onClickInt(which)); } if (_dismissOnClick) { GoodiesSceneHelper.Queue(() => dialog.Call("dismiss")); } }
// ReSharper disable once InconsistentNaming // ReSharper disable once UnusedMember.Local void onRequestPermissionsResults(AndroidJavaObject results) { int size = results.CallInt("size"); var requestResults = new PermissionRequestResult[size]; for (int i = 0; i < size; i++) { var resultAJO = results.CallAJO("get", i); string permission = resultAJO.CallStr("getPermission"); bool shouldShowRequestPermissionRationale = resultAJO.CallBool("isShouldShowRequestPermissionRationale"); var status = (PermissionStatus)resultAJO.CallInt("getResult"); requestResults[i] = new PermissionRequestResult(permission, shouldShowRequestPermissionRationale, status); } if (_onResult != null) { GoodiesSceneHelper.Queue(() => _onResult(requestResults)); } results.Dispose(); }
private void onLocationChanged(/*Location*/ AndroidJavaObject locationAJO) { var location = LocationFromAJO(locationAJO); GoodiesSceneHelper.Queue(() => _onLocationChanged(location)); }
void onClick(AndroidJavaObject dialog, int which, bool isChecked) { GoodiesSceneHelper.Queue(() => _onClick(which, isChecked)); }
void onDismiss(AndroidJavaObject dialog) { GoodiesSceneHelper.Queue(_onDismiss); }
// ReSharper disable once InconsistentNaming // ReSharper disable once UnusedMember.Local // ReSharper disable once UnusedParameter.Local void onTimeSet(AndroidJavaObject view, int hourOfDay, int minute) { GoodiesSceneHelper.Queue(() => _onTimePicked(hourOfDay, minute)); }
// ReSharper disable once InconsistentNaming // ReSharper disable once UnusedMember.Local // ReSharper disable once UnusedParameter.Local void onDateSet(AndroidJavaObject view, int year, int month, int dayOfMonth) { // Month! (0-11 for compatibility with MONTH) GoodiesSceneHelper.Queue(() => _onDatePicked(year, month + 1, dayOfMonth)); }
void onCancel(AndroidJavaObject dialog) { GoodiesSceneHelper.Queue(_onCancel); }