sendDisplayContent static method

Future<void> sendDisplayContent(
  1. String displayId,
  2. String title,
  3. String body
)

Implementation

static Future<void> sendDisplayContent(String displayId, String title, String body) async {
  try {
    await _channel.invokeMethod<void>('sendDisplayContent', {
      'displayId': displayId,
      'title': title,
      'body': body,
    });
  } on PlatformException catch (e) {
    throw WearablesError(
      code: e.code,
      description: e.message ?? 'Send display content failed',
    );
  }
}