OkHi class

The primary class for integrating OkHi with your app.

Constructors

OkHi()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

platformVersion Future<String>
Returns the system version of the current platform
no setter

Static Methods

canOpenProtectedApps() Future<bool>
Android Only - Checks whether current device can open "Protected Apps Settings" available in Transsion Group android devices such as Infinix and Tecno When your application is included in protected apps, verification processes are less likely to be terminated by the OS. Increasing rate of users being verified.
canStartVerification(bool requestServices) Future<bool>
Checks whether all necessary permissions and services are available in order to start the address verification process.
fetchLocationPermissionStatus() Future<String>
fetchRegisteredGeofences() Future<List>
getConfiguration() OkHiAppConfiguration?
Returns the current configuration
getCurrentLocation() Future<Map<String, Object>?>
initialize(OkHiAppConfiguration configuration) Future<bool>
Initializes the library with provided API Keys and optional notification configuration.
isBackgroundLocationPermissionGranted() Future<bool>
Checks whether background location permission is granted.
isForegroundServiceRunning() Future<bool>
Android Only - Checks if the foreground service is running.
isGooglePlayServicesAvailable() Future<bool>
Android Only - Checks if Google Play Services is available.
isLocationPermissionGranted() Future<bool>
Checks whether when in use location permission is granted
isLocationServicesEnabled() Future<bool>
Checks whether location services are enabled.
openAppSettings() Future<bool>
openProtectedApps() Future<void>
Android Only - Opens "Protected Apps Settings" available in Transsion Group android devices such as Infinix and Tecno When your application is included in protected apps, verification processes are less likely to be terminated by the OS. Increasing rate of users being verified.
requestBackgroundLocationPermission() Future<bool>
Requests for background location permission.
requestEnableGooglePlayServices() Future<bool>
Android Only - Requests user to enable Google Play Services.
requestEnableLocationServices() Future<bool>
Requests the user to enable location services by showing an in app modal on android and opening location settings on iOS.
requestLocationPermission() Future<bool>
Requests for when in use location permission.
retrieveDeviceInfo() Future<Map<String, Object>?>
startForegroundService() Future<bool>
Android Only - Starts a foreground service that speeds up rate of verification.
startVerification(OkHiUser user, OkHiLocation location, OkHiVerificationConfiguration? configuration) Future<String>
Starts verification for a particular address using the response object returned by OkHiLocationManager.
stopForegroundService() Future<bool>
Android Only - Stops previously started foreground services.
stopVerification(OkHiUser user, OkHiLocation location) Future<String>
Stops verification for a particular address.