initWithParams method

  1. @override
Future<void> initWithParams(
  1. SignInInitParameters params
)
override

Initializes the plugin with specified params. You must call this method before calling other methods.

See:

  • SignInInitParameters

Implementation

@override
Future<void> initWithParams(SignInInitParameters params) {
  if (params.signInOption == SignInOption.games) {
    throw PlatformException(
        code: 'unsupported-options',
        message: 'Games sign in is not supported on iOS');
  }
  return _api.init(InitParams(
    scopes: params.scopes,
    hostedDomain: params.hostedDomain,
    clientId: params.clientId,
    serverClientId: params.serverClientId,
  ));
}