Pages

Tuesday 1 September 2015

Google Analytics Loader

Documentation
google-analytics-loader is used internally by elements that need to know api state, and user state.
Loads gapi.client.analytics, and watches user signed-in state.
Properties
allReady
Boolean notify
    True when user is authorized, and api is loaded
    apiReady
    Booleandefault: false readOnly notify
      True when api is loaded
      authorized
      Booleandefault: false readOnly notify
        True when user is authorized
        Methods
        computeAllReady(apiReady, authorized)
        default:''
          handleApiFailedToLoad(ev, detail)
          default:''
            handleApiLoad()
            default:''
              handleAuthSignout()
              default:''
                handleAuthSuccess()

                No comments:

                Post a Comment