Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7896985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:02:12+00:00 2026-06-03T08:02:12+00:00

The Hangout API at https://developers.google.com/+/hangouts/writing includes an example to set a callback function when

  • 0

The Hangout API at https://developers.google.com/+/hangouts/writing includes an example to set a callback function when the hangout state has changed, like this:

gapi.hangout.onStateChanged.add(onStateChange);

When run, this results in an error similar to “gapi.hangout.onStateChanged is undefined“. A quick check in Firebug shows that the onStateChanged method belongs to gapi.hangout.data not gapi.hangout.

What is the correct way to add a callback function when the state has changed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:02:13+00:00Added an answer on June 3, 2026 at 8:02 am

    The method that you’re looking for is indeed a member of gapi.hangout.data. The writing article you mention seems to be out of date. I fix it 🙂

    To do something when state changes just attach a callback:

    gapi.hangout.data.onStateChanged.add(function() {
      console.log(gapi.hangout.data.getState());
    });
    

    You can find working examples of the code in action on the sample apps page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I was messing around with google's hangouts api and there is a function
Is it possible to intercept audio data using google+ hangout api? I writing an
The new google hangout button enables to embed hangouts on websites, but it is
This question was initially posted on Google Moderator for the AndroidDev Office Hours Hangout
if (status == google.maps.GeocoderStatus.OK) { hangout = results[0].geometry.location; console.log(hangout); console.log(hangout.lat); } I know I'm
I am generating a url in my controller accessed from the relative path /hangouts/test,
I've set an eventhandler to an event like this: frm.FormClosed += (sender, args) =>
If I create a variable within a new set of curly braces, is that
I am new in android development. Please check this url - http://mobileecommerce.site247365.com/admin/catdata.xml Please check
Today I started to discover the HTML Code of Google+ When I inspected the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.