SessionManager class

A class that manages Session instances. The application can attach a listeners to be notified of session events.

Constructors

SessionManager(CastHostApi _hostApi)

Properties

hashCode int
The hash code for this object.
no setterinherited
onMessageReceived MessageReceivedCallback?
Callback called when the Cast Receiver sent a message
getter/setter pair
remoteMediaClient RemoteMediaClient
Returns the RemoteMediaClient for remote media control.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ValueListenable<SessionState>
Listenable session state of the cast device
no setter

Methods

dispose() → void
getCastDevice() Future<CastDevice>
Returns the currently connected cast device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSessionStateChanged(SessionState sessionState) → void
Internal method that shouldn't be visible
platformOnMessageReceived(CastMessage castMessage) → void
Internal method that shouldn't be visible
sendMessage(String namespace, String message) → void
Send a string message to the Cast Receiver using the input namespace
setMute(bool muted) → void
Toggles the stream muting.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited