pair method

  1. @override
Future<OryksaPairing> pair(
  1. String locale
)
override

Starts pairing a phone: the QR and the code to show.

Implementation

@override
Future<OryksaPairing> pair(String locale) async {
  final l = oryksaTvNormalizeLocale(locale);
  return OryksaPairing.fromJson(await client.request('POST', '/client/tv/pair', {
    if (l.isNotEmpty) 'locale': l,
    'platform': platform,
  }));
}