SessionManager class Null safety

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. [...]
read-only, inherited
onMessageReceived MessageReceivedCallback?
Callback called when the Cast Receiver sent a message
read / write
remoteMediaClient RemoteMediaClient
Returns the RemoteMediaClient for remote media control.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state ValueListenable<SessionState>
Listenable session state of the cast device
read-only

Methods

dispose() → void
getCastDevice() Future<CastDevice>
Returns the currently connected cast device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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