object VenueNext : Listener, StorageListener, DeepLinkable
ConfigurationException |
class ConfigurationException : Exception |
canHandleDeepLink |
Call to determine if a deep link is intended for the SDK, if so then call handleDeepLink to continue. fun canHandleDeepLink(uri: Uri): Boolean |
checkIsConnected |
Checks connectivity. fun checkIsConnected(context: Context): Boolean |
configureAnalytics |
Configure analytics. fun configureAnalytics(analytics: AnalyticsInterface): Unit |
getLocalyticsInterface |
Get Localytics analytic interfaces. fun getLocalyticsInterface(): AnalyticsInterface? |
handleDeepLink |
Call canHandleDeepLink before calling this function, otherwise this will no-op. fun handleDeepLink(view: View, uri: Uri): Unit |
handleRemoteMessage |
Handles remote message. fun handleRemoteMessage(context: Context, message: RemoteMessage?): Unit |
initialize |
Initializes the VenueNext SDK fun initialize(sdkKey: String, sdkSecret: String, context: Context, jwtToken: String? = null): Deferred<Int>
We do not recommend use of this function because no error handling is possible in case of a failure. fun fun fun initialize(sdkKey: String, sdkSecret: String, context: Context, jwt: String? = null, configJsonString: String, onSuccess: () -> Unit, onError: (Throwable) -> Unit): Unit |
isForeground |
Checks if application is in foreground. fun isForeground(): Boolean |
onCaughtException |
fun onCaughtException(exception: Exception): Unit |
onConnect |
fun onConnect(): Unit |
onDisconnect |
fun onDisconnect(code: Int, reason: String): Unit |
onError |
fun onError(ex: Exception): Unit |
onMessage |
fun onMessage(message: String): Unit fun onMessage(data: ByteArray): Unit |
onSuccessfulDisconnect |
fun onSuccessfulDisconnect(): Unit |
onUnsuccessfullDisconnect |
fun onUnsuccessfullDisconnect(ex: Exception): Unit |
registerDeepLinkable |
Top level module objects should be registered here for handling deep links fun registerDeepLinkable(vararg list: DeepLinkable): Boolean |
registerDevice |
Register device for push notifications. fun registerDevice(context: Context, token: String): Unit |
subscribeConnectivityChanged |
fun subscribeConnectivityChanged(context: Context, listener: ConnectivityInterface): Unit |
subscribeOrderChanged |
fun subscribeOrderChanged(listener: OrderChangedListener): Unit |
subscribeOrderNotification |
fun subscribeOrderNotification(listener: OrderNotificationListener): Unit |
unsubscribeConnectivityChanged |
fun unsubscribeConnectivityChanged(listener: ConnectivityInterface): Unit |
unsubscribeOrderChanged |
fun unsubscribeOrderChanged(listener: OrderChangedListener): Unit |
unsubscribeOrderNotification |
fun unsubscribeOrderNotification(listener: OrderNotificationListener): Unit |