- getAppPackageName() - Method in class org.mikotin.googlesignin.GoogleSignin
-
App package name for android over-the-air installs.
- getBrand() - Method in class org.mikotin.googlesignin.GoogleSignin
-
The brand being used for logo and styling.
- getCookiePolicy() - Method in class org.mikotin.googlesignin.GoogleSignin
-
The cookie policy defines what URIs have access to the session cookie
remembering the user's sign-in state.
- getEmail() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
- getFill() - Method in class org.mikotin.googlesignin.GoogleSignin
-
By default the ripple expands to fill the button.
- getFirstName() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
- getHeight() - Method in class org.mikotin.googlesignin.GoogleSignin
-
The height to use for the button.
- getIdToken() - Method in class org.mikotin.googlesignin.events.internal.InternalSignInEvent
-
- getLabelAdditional() - Method in class org.mikotin.googlesignin.GoogleSignin
-
An optional label for the button for additional permissions.
- getLabelSignin() - Method in class org.mikotin.googlesignin.GoogleSignin
-
An optional label for the sign-in button.
- getLabelSignout() - Method in class org.mikotin.googlesignin.GoogleSignin
-
An optional label for the sign-out button.
- getLastName() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
- getLocale() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
- getName() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
- getPictureUrl() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
- getRaised() - Method in class org.mikotin.googlesignin.GoogleSignin
-
If true, the button will be styled with a shadow.
- getScopes() - Method in class org.mikotin.googlesignin.GoogleSignin
-
The scopes to provide access to (e.g https://www.googleapis.com/auth/drive)
and should be space-delimited.
- getTheme() - Method in class org.mikotin.googlesignin.GoogleSignin
-
The theme to use for the button.
- getToken() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
Thhe login-token, retrieved from succesful login
- getUserId() - Method in class org.mikotin.googlesignin.events.UserLoginEvent
-
- getValue() - Method in enum org.mikotin.googlesignin.GoogleSignin.Brand
-
- getValue() - Method in enum org.mikotin.googlesignin.GoogleSignin.Height
-
- getValue() - Method in enum org.mikotin.googlesignin.GoogleSignin.Theme
-
- getValue() - Method in enum org.mikotin.googlesignin.GoogleSignin.Width
-
- getWidth() - Method in class org.mikotin.googlesignin.GoogleSignin
-
The width to use for the button.
- GoogleSignin - Class in org.mikotin.googlesignin
-
A wrapper for google sign -web component, with some extra callbacks
to actually get the user-data
https://www.webcomponents.org/element/GoogleWebComponents/google-signin
Basic usage:
GoogleSignin signin = new GoogleSignin("your-google-client-id");
signin.addLoginListener(event -> {
Notification.show("Welcome, " + event.getFirstName());
});
NOTE that, by default signin has auto-logout feature on, this mean
that google-session is logged out instantly after successful login
(well, first the session is used to get basic user information,
but after that).
- GoogleSignin(String) - Constructor for class org.mikotin.googlesignin.GoogleSignin
-
- GoogleSignin.Brand - Enum in org.mikotin.googlesignin
-
- GoogleSignin.Height - Enum in org.mikotin.googlesignin
-
- GoogleSignin.Theme - Enum in org.mikotin.googlesignin
-
- GoogleSignin.Width - Enum in org.mikotin.googlesignin
-