Class OkHi

java.lang.Object
io.okhi.android_core.OkHi

public class OkHi extends Object
  • Constructor Details

    • OkHi

      public OkHi(@NonNull androidx.appcompat.app.AppCompatActivity activity)
    • OkHi

      public OkHi(@NonNull android.app.Activity activity)
  • Method Details

    • isLocationPermissionGranted

      public static boolean isLocationPermissionGranted(@NonNull android.content.Context context)
    • isBackgroundLocationPermissionGranted

      public static boolean isBackgroundLocationPermissionGranted(@NonNull android.content.Context context)
    • isLocationServicesEnabled

      public static boolean isLocationServicesEnabled(@NonNull android.content.Context context)
    • isGooglePlayServicesAvailable

      public static boolean isGooglePlayServicesAvailable(@NonNull android.content.Context context)
    • openLocationServicesSettings

      public static void openLocationServicesSettings(@NonNull android.app.Activity activity)
    • requestLocationPermission

      public void requestLocationPermission(@NonNull String rationaleTitle, @NonNull String rationaleMessage, OkHiRequestHandler<Boolean> handler)
    • requestLocationPermission

      public void requestLocationPermission(OkHiRequestHandler<Boolean> handler)
    • requestBackgroundLocationPermission

      public void requestBackgroundLocationPermission(OkHiRequestHandler<Boolean> handler)
    • requestBackgroundLocationPermission

      public void requestBackgroundLocationPermission(@NonNull String rationaleTitle, @NonNull String rationaleMessage, OkHiRequestHandler<Boolean> handler)
    • requestEnableGooglePlayServices

      public void requestEnableGooglePlayServices(@NonNull OkHiRequestHandler<Boolean> handler)
    • requestEnableLocationServices

      public void requestEnableLocationServices(@NonNull OkHiRequestHandler<Boolean> handler)
    • requestNotificationPermission

      public void requestNotificationPermission(@NonNull OkHiRequestHandler<Boolean> handler)
    • requestEnableVerificationServices

      public void requestEnableVerificationServices(@NonNull OkHiRequestHandler<Boolean> handler)
    • isNotificationPermissionGranted

      public static boolean isNotificationPermissionGranted(@NonNull android.content.Context context)
    • openAppSettings

      public static void openAppSettings(@NonNull android.content.Context context)
    • onRequestPermissionsResult

      public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
    • onRequestPermissionsResult

      public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults, @NonNull OkHiPermissionHandler handler)
    • onActivityResult

      public void onActivityResult(int requestCode, int resultCode, android.content.Intent data)