Package io.okhi.android_core.models
Class OkHiLocationService
java.lang.Object
io.okhi.android_core.models.OkHiLocationService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
getCurrentLocation
(android.content.Context context, OkHiRequestHandler<android.location.Location> handler) static boolean
isLocationServicesEnabled
(android.content.Context context) void
onActivityResult
(int requestCode, int resultCode, android.content.Intent data) static void
openLocationServicesSettings
(android.app.Activity activity) void
-
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
-
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)
-