Skip to content

TWebSignIn

Legacy only

TWebSignIn uses the deprecated Google Sign-in JavaScript Platform Library for web. For Google Identity Services use TWebAuth.

Description

Below is a list of the most important properties methods and events for TWebSignIn. TWebSignIn allows letting users sign in through an existing Google or Facebook account

Designtime Runtime

HTML template tag

The HTML tag the component can be associated with in an HTML template. Assign the ID attribute with a unique value and set the identical value to the ElementID property. Detailed information can be found in the Use of HTML templates topic.

HTML tag <DIV ID=”UniqueID”></DIV>
ElementID UniqueID

Properties for TWebSignIn

Property Description
ElementClassName Optionally sets the CSS classname for the edit control when styling via CSS is used
ElementID Optionally sets the HTML element ID for HTML INPUT element in the form HTML file the edit control needs to be connected with. When connected, no new edit control is created but the Delphi class is connected with the existing HTML element in the form HTML file
Services: Google and Facebook

Methods for TWebSignIn

Property Description
SignIn(Service) Starts the signin procedure programmatically for the service specified with the Service parameter
SignOut(Service) Starts the signout procedure programmatically for the service specified with the Service parameter

Events for TWebSignIn

Property Description
OnGoogleSignedIn Event triggered if a user successfully signed in through Google. The event provides the user’s Token, ID, FirstName, LastName, ImageUrl and Email via the Args parameter values.
OnGoogleSignedOut Event triggered if a user successfully signed out through Google
OnFacebookSignedIn Event triggered if a user successfully signed in through Facebook. The event provides the user’s ID, Name and Email via the Args parameter values.
OnFacebookSignedOut Event triggered if a user successfully signed out through Facebook