Sensorberg Smart Spaces SDK for Android / com.sensorberg.smartspaces.sdk

Package com.sensorberg.smartspaces.sdk

Types

Availability

enum class Availability

Indication of unit availability regarding, being booked and restricted access times

AvailablePropertyFilter

object AvailablePropertyFilter : IotDeviceFilter

BookingManager

interface BookingManager

Manages user bookings on the units

CancellationSignal

class CancellationSignal

Cancellation object for the UnitController.open method. Calling cancel on this object will attempt to cancel the open operation. If the cancellation was successful the Response.Status will be Response.Status.FAIL and Response.exception will be the exception object passed to the cancel method.

IotDeviceController

interface IotDeviceController

IotDeviceFilter

interface IotDeviceFilter

IotDeviceFilterList

class IotDeviceFilterList : IotDeviceFilter

NearbyFilter

object NearbyFilter : IotDeviceFilter

NfcActivity

class NfcActivity

Activity to receive NFC intents from the background. This activity automatically passes relevant information to the SDK, starts an activity from the client application and calls finish.

OpeningProgress

enum class OpeningProgress

Progress status of the open operation

PropertyFilter

interface PropertyFilter

PropertyFilterList

class PropertyFilterList : PropertyFilter

PropertyKindFilter

class PropertyKindFilter : PropertyFilter

Refresh

enum class Refresh

Specify which data to refresh when calling SmartSpacesSdk.refresh

SmartSpacesSdk

interface SmartSpacesSdk

Sensorberg Smart Spaces SDK interface. All methods are expected to be called from UI-thread. The SDK handles all needed threading internally. The Smart Spaces SDK must be a singleton in the application. Consult the implementation guide for singleton pattern.

Sorting

enum class Sorting

Sorting used to return units

TapController

interface TapController

Controller for magneto and NFC "tap" actions.

TapEventListener

interface TapEventListener

Listener to detect a tap event.

UnitController

interface UnitController

Controller for a IotUnit.

UserManager

interface UserManager

Manages user authentication. Provides methods for login, logout, change password and the logged-in/out

WritablePropertyFilter

object WritablePropertyFilter : PropertyFilter

Functions

execute

fun IotDeviceController.execute(iotDevice: IotDevice, block: Builder.() -> Unit): <ERROR CLASS><SimpleResponse<Void>>