Search code examples
glympse

Glympse API event handling


I am trying to launch glympse app by using an intent and receiving the information through broadcast. Is there any way that I will be notified about the events occurring like ticket removed, expired, updated etc?


Solution

  • There sure is.

    We created a library project to make this easier for you. It can be found here: https://github.com/Glympse/glympse-app-sdk/tree/master/Android/GlympseIntentsLib

    A sign-in is required to view these documents that might be helpful.

    Tutorial: https://developer.glympse.com/Content/client/app/guides/Glympse_Intents_Tutorial.html Reference Docs: https://developer.glympse.com/Content/client/app/guides/Glympse_Intents_Reference.html

    Specifically, check out the method CreateGlympseParams.setCallbackAction(String). This will allow you to set an action which will be used to broadcast a message back to your app.

    Another option is to use CreateGlympseParams.setEventsListener(EventsListener). With this method, you can supply an object that implements GlympseApp.EventsListener. Using this method, our library handles the broadcast under the covers and your object's methods will be invoked as the event occur.