startSession static method

Future<void> startSession(
  1. String sessionId
)

Implementation

static Future<void> startSession(String sessionId) async {
  try {
    await _channel.invokeMethod<void>('startSession', {
      'sessionId': sessionId,
    });
  } on PlatformException catch (e) {
    throw WearablesError(
      code: e.code,
      description: e.message ?? 'Start session failed',
    );
  }
}