public class SystemRequirementChecker
extends java.lang.Object
Constructor and Description |
---|
SystemRequirementChecker() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkAllPermissions(android.content.Context context)
Check all permissions that required.
|
static boolean |
isAppTargetingMarshmallowOrLater(android.content.Context context)
Check if application targeting Android API 23 or later
|
static boolean |
isBluetoothEnabled(android.content.Context context)
Check whether bluetooth is enabled.
|
static boolean |
isBluetoothLeAvailable(android.content.Context context)
Check if bluetooth low energy is available.
|
static boolean |
isLocationServiceForBluetoothLeEnabled(android.content.Context context)
Check if location services for Bluetooth scanning is enabled.
|
public static boolean isBluetoothLeAvailable(@NonNull android.content.Context context)
context
- the Context
where checking happenpublic static boolean isBluetoothEnabled(@NonNull android.content.Context context)
context
- The activity where it is checkedpublic static boolean isLocationServiceForBluetoothLeEnabled(@NonNull android.content.Context context)
context
- The activity where it is checkedpublic static boolean checkAllPermissions(@NonNull android.content.Context context)
context
- the Context
where checking happenpublic static boolean isAppTargetingMarshmallowOrLater(android.content.Context context)
context
- The activity where checking happen