DialScreen class

This class represents a screen (tv) with DIAL (DIscovery and LAunch) capabilities. Use it to find such screens and launch/manage apps on it. See here for a list of apps

Constructors

DialScreen(Uri baseUri, String? name)
DialScreen.forCastDevice(String ip, String deviceName)
Uses new DialScreen and makes your ip to an uri with http and port 8008
factory

Properties

baseUri Uri
The base part of the uri which is utilized to make requests
final
hashCode int
The hash code for this object.
no setterinherited
name String?
The optional name of this screen
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close([String? app]) Future<bool>
Closes either the specified app or if none given the current app
getCurrentApp() Future<String?>
Returns the name of the specified or otherwise null
hasApp(String app) Future<bool>
Returns if this screen has the specified app installed
isIdle() Future<bool>
Returns if this screen is idling, which means that no app is opened
launch(String app, {dynamic payload}) Future
Launches the specified app with an optional paylod
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(String method, String path, {dynamic body, Map<String, dynamic>? headers}) Future<HttpClientResponse>
Use this method to send custom HTTP requests to the screen See UpnpCommon.httpClient.openUrl
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

find({bool silent = true}) Stream<DialScreen>
Returns a stream of discovered devices with DIAL capabilities. Already found devices won't be added again to the stream. If silent, no exceptions will be passed to the returned stream.