Sebastien Leclerc Lavallee
05/29/2020, 6:03 PMpublic final GoogleSignInOptions.Builder requestScopes(Scope var1, Scope... var2) { }
I can call .requestScopes(scope1, scope2, scope3) without any problem.
How can I translate a list of Scopes to call this function. I tried using only an Array , a List , to pass the first element and then a list. But nothing worked. Seems like I have to pass the expanded list. How can I achieve this when my list of scopes is stored inside a List<Scope> ?
Thanks!araqnid
05/29/2020, 6:06 PMrequestScopes(scope1, *arrayOfScopes)araqnid
05/29/2020, 6:06 PMrequestScopes(scope1, *(listOfScopes.toTypedArray()))Sebastien Leclerc Lavallee
05/29/2020, 6:08 PMaraqnid
05/29/2020, 6:12 PMSebastien Leclerc Lavallee
05/29/2020, 6:12 PMaraqnid
05/29/2020, 6:12 PMSebastien Leclerc Lavallee
05/29/2020, 6:13 PM