vncore / com.venuenext.vncore / VenueNext

VenueNext

object VenueNext : Listener, StorageListener, DeepLinkable

Exceptions

ConfigurationException

class ConfigurationException : Exception

Properties

analytics

var analytics: MutableList<AnalyticsInterface>?

application

lateinit var application: Application

config

var config: VNConfiguration?

coreNavigation

var coreNavigation: CoreNavigator?

currentVenue

var currentVenue: Venue?

device

var device: Device?

environment

var environment: Environment?

notificationColor

var notificationColor: String?

notificationLargeIcon

var notificationLargeIcon: Int?

notificationMessageRouter

val notificationMessageRouter: NotificationMessageRouter

notificationSmallIcon

var notificationSmallIcon: Int?

notificationTitle

var notificationTitle: String?

organization

var organization: Organization?

reInitRouter

val reInitRouter: ReInitRouter

showToolbar

var showToolbar: Boolean

ticketingInterface

var ticketingInterface: TicketingInterface?

user

var user: User?

venues

var venues: List<Venue>?

VN_ACTION_BAR_TITLE

const val VN_ACTION_BAR_TITLE: String

walletInterface

var walletInterface: WalletInterface?

wasConnected

var wasConnected: Boolean

webSocket

var webSocket: WebSocket?

Functions

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 initialize(sdkKey: String, sdkSecret: String, context: Context, jwt: String? = null, completion: () -> Unit): Unitfun initialize(sdkKey: String, sdkSecret: String, context: Context, jwtToken: String? = null, onSuccess: () -> Unit, onError: (Throwable) -> Unit): Unit
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