addDisplay static method
Implementation
static Future<String> addDisplay(String sessionId) async {
try {
final result = await _channel.invokeMethod<Map>('addDisplay', {
'sessionId': sessionId,
});
return result?['displayId'] as String;
} on PlatformException catch (e) {
throw WearablesError(
code: e.code,
description: e.message ?? 'Add display failed',
);
}
}