Class OkHiLocationService

java.lang.Object
io.okhi.android_core.models.OkHiLocationService

public class OkHiLocationService extends Object
  • Constructor Details

    • OkHiLocationService

      public OkHiLocationService(android.app.Activity activity)
  • Method Details

    • isLocationServicesEnabled

      public static boolean isLocationServicesEnabled(android.content.Context context)
    • openLocationServicesSettings

      public static void openLocationServicesSettings(android.app.Activity activity)
    • requestEnableLocationServices

      public void requestEnableLocationServices(OkHiRequestHandler<Boolean> handler)
    • onActivityResult

      public void onActivityResult(int requestCode, int resultCode, @Nullable android.content.Intent data)
    • getCurrentLocation

      public static void getCurrentLocation(android.content.Context context, OkHiRequestHandler<android.location.Location> handler)