(isGranted: boolean)
| 103 | new androidx.activity.result.contract.ActivityResultContracts.RequestPermission(), |
| 104 | new androidx.activity.result.ActivityResultCallback({ |
| 105 | onActivityResult(isGranted: boolean) { |
| 106 | _permissionQueue.forEach((callback) => { |
| 107 | callback.resolve(isGranted ? 0 : 1); |
| 108 | }); |
| 109 | _permissionQueue.splice(0); |
| 110 | }, |
| 111 | }) |
| 112 | ); |
| 113 | } else { |