Skip to content

Commit 25edbe3

Browse files
Updated README
1 parent c7e585a commit 25edbe3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,35 @@ This package is compatable with all versions of Android or iOS that are compatab
1010

1111
## API Reference
1212

13-
```
13+
```dart
1414
static Future<bool> hasPermission(Permission)
1515
```
1616

1717
Checks to see if the app has been granted access to a particular permission.
1818

19-
```
19+
```dart
2020
static Future<PermissionStatus> requestPermission(Permission)
2121
```
2222

2323
Requests a permission from the mobile platform. This usually entails a display window showing on the app, asking the user if they would like to allow the app access to that permission.
2424

2525
If the permission has already been granted, this function will automatically return `PermissionStatus.Granted`.
2626

27-
```
27+
```dart
2828
static Future<PermissionStatus> getPermissionStatus(Permission)
2929
```
3030

3131
Returns the exact `PermissionStatus` of a given permission.
3232

33-
```
33+
```dart
3434
enum Permission
3535
```
3636

3737
An enum containing all the permissions this package supports requesting from the mobile platform.
3838

3939
See Permissions Reference below for a list of values.
4040

41-
```
41+
```dart
4242
enum PermissionStatus
4343
```
4444

0 commit comments

Comments
 (0)