Top

Android Bubble problem after accepting invitation

Comments

1 comment

  • Jonathan PETIT

    Hi,

     

    Do you try this?

     

    LISTEN TO AN INVITATION


    There is no event to listen which would be triggered when you receive an invitation to join a Bubble.

    However, you can listen to the data changed of the list getAllBubbles() which is an ArrayItemList. See guide Using ArrayItemList.

    This list includes all Bubble: active, pending, archived.

    To listen to the list:

    
        RainbowSdk.instance().bubbles().getAllBubbles().registerChangeListener(m_changeListener);
    
    

    Do not forget to unregister:

    
        RainbowSdk.instance().bubbles().getAllBubbles().unregisterChangeListener(m_changeListener);
    
    

    And provide the object:

    
        private IItemListChangeListener m_changeListener = new IItemListChangeListener() {
            @Override
            public void dataChanged() {
                // Do something in the thread UI
            }
        };
    
    

    In the API dataChanged(), you can update, for example the UI, by getting the list you need:

    • getAllList(): all Bubbles except pending and archived

    • getPendingList(): pending Bubbles (invited to join)

    • getMyList(): my Bubbles (Bubbles you own)

    • getArchivedList(): archived Bubbles

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message