public void authorize ( Activity activity , String [ ] permissions , int activityCode , final DialogListener listener ) { boolean singleSignOnStarted = false ; mAuthDialogListener = listener ; // Prefer single sign-on, where available. if ( activityCode >= 0 ) { singleSignOnStarted = startSingleSignOn ( activity , mAppId , permissions , activityCode ) ; } // Otherwise fall back to traditional dialog. if ( ! singleSignOnStarted ) { startDialogAuth ( activity , permissions ) ; } }
Full authorize method .