apidocs / com.nimmsta.core.android.framework / NIMMSTANotificationService

NIMMSTANotificationService

object NIMMSTANotificationService

This service handles all the notifications that are used by our Accessibility Service You need to call initialize once for it to work

Types

ConnectReceiver

class ConnectReceiver : BroadcastReceiver

DisconnectReceiver

class DisconnectReceiver : BroadcastReceiver

Functions

hidePermanentNotification

Hides the permanent Notification

fun hidePermanentNotification(): Unit

hideUpgradeDoneNotificationAndDisconnect

Shows a popup Notification with sound to notify the user that an upgrade upload is done

fun hideUpgradeDoneNotificationAndDisconnect(address: String): Unit

initialize

fun initialize(context: Service, connectionManager: NIMMSTAConnectionManager): Unit

showConnectActivity

Show connect activity

fun showConnectActivity(): Unit

showDisconnectedNotification

Shows a popup Notification with sound to notify the user that the scanner was disconnected

fun showDisconnectedNotification(): Unit

showPermanentNotification

Builds and shows the permanent Notification

fun showPermanentNotification(isConnected: Boolean): Unit

showUpgradeDoneNotification

Shows a popup Notification with sound to notify the user that an upgrade upload is done

fun showUpgradeDoneNotification(device: NIMMSTADevice): Unit