{"_id":"5759a5475577ba2b00cc4311","__v":0,"githubsync":"","category":{"_id":"5759a5475577ba2b00cc4309","version":"5759a5475577ba2b00cc4306","__v":0,"project":"575656e0a71a711700de7eef","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-06-09T05:11:07.146Z","from_sync":false,"order":2,"slug":"classes-and-interfaces","title":"Classes and interfaces"},"project":"575656e0a71a711700de7eef","user":"57429d54990c970e00386e12","version":{"_id":"5759a5475577ba2b00cc4306","project":"575656e0a71a711700de7eef","__v":1,"createdAt":"2016-06-09T17:20:07.619Z","releaseDate":"2016-06-09T17:20:07.619Z","categories":["5759a5475577ba2b00cc4307","5759a5475577ba2b00cc4308","5759a5475577ba2b00cc4309"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.3.1","version":"1.3.1"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-09T05:27:44.953Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":7,"body":"## Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"import Application = require(\\\"application\\\");\\nimport SocialLogin = require(\\\"nativescript-social-login\\\");\\n\\nif (Application.android) {\\n    Application.android.onActivityCreated = (activity) => {\\n        var cfg: <SocialLogin.ILoginConfiguration>{\\n            activity: activity,\\n          \\n            googleServerClientId: \\\"<YOUR-CLIENT-ID-HERE>\\\",\\n        };\\n      \\n        SocialLogin.init(cfg);\\n    });\\n}\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n## Members\n\n### Properties\n\n#### activity\n\nThe underlying custom activity to use.\n\n#### facebook\n\nFacebook specific configuration data.\n\n##### initialize\n\nInitialize Facebook provider or not. Is (true) by default.\n\n#### google\n\nGoogle specific configuration data.\n\n##### initialize\n\nInitialize Google provider or not. Is (true) by default.\n\n##### serverClientId\n\nThe server client ID for requesting auth token for a backend server, e.g.\n\ns. [Enabling Server-Side Access](https://developers.google.com/identity/sign-in/android/offline-access)\n\n#### onActivityResult\n\nFallback action for an Android activity result.","excerpt":"Describes an object that stores configuration for initialization.","slug":"iloginconfiguration","type":"basic","title":"ILoginConfiguration"}

ILoginConfiguration

Describes an object that stores configuration for initialization.

## Example [block:code] { "codes": [ { "code": "import Application = require(\"application\");\nimport SocialLogin = require(\"nativescript-social-login\");\n\nif (Application.android) {\n Application.android.onActivityCreated = (activity) => {\n var cfg: <SocialLogin.ILoginConfiguration>{\n activity: activity,\n \n googleServerClientId: \"<YOUR-CLIENT-ID-HERE>\",\n };\n \n SocialLogin.init(cfg);\n });\n}", "language": "javascript" } ] } [/block] ## Members ### Properties #### activity The underlying custom activity to use. #### facebook Facebook specific configuration data. ##### initialize Initialize Facebook provider or not. Is (true) by default. #### google Google specific configuration data. ##### initialize Initialize Google provider or not. Is (true) by default. ##### serverClientId The server client ID for requesting auth token for a backend server, e.g. s. [Enabling Server-Side Access](https://developers.google.com/identity/sign-in/android/offline-access) #### onActivityResult Fallback action for an Android activity result.