services-api / com.keecker.services.projection.interfaces / ProjectorClient

ProjectorClient

class ProjectorClient : ProjectorCoroutineClient, ProjectorAsyncClient

Gives access to the Projector Service:

  • settings
  • position
  • power

Parameters

connection - Connection bound to the Projector Service.

Constructors

<init> ProjectorClient(context: Context)
Constructs the client with a default connection.ProjectorClient(connection: PersistentServiceConnection<IProjectorService>)
Gives access to the Projector Service:

Properties

connection val connection: PersistentServiceConnection<IProjectorService>
Connection bound to the Projector Service.

Functions

getState suspend fun getState(): ProjectorState
getStateAsync fun getStateAsync(): CompletableFutureCompat<ProjectorState>
setState suspend fun setState(state: ProjectorState): Boolean
setStateAsync fun setStateAsync(projectorState: ProjectorState): CompletableFutureCompat<Boolean>
subscribeToState suspend fun subscribeToState(listener: IProjectorStateListener): Unit
subscribeToStateAsync fun subscribeToStateAsync(subscriber: IProjectorStateListener): CompletableFutureCompat<Unit>
unsubscribeToState suspend fun unsubscribeToState(listener: IProjectorStateListener): Unit
unsubscribeToStateAsync fun unsubscribeToStateAsync(subscriber: IProjectorStateListener): CompletableFutureCompat<Unit>

Companion Object Properties

bindingInfo val bindingInfo: ServiceBindingInfo<IProjectorService>