Top

Android Bubble problem after accepting invitation

Comentários

1 comentário

  • 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
    Ações de comentário Permalink

Por favor, entrar para comentar.

Ainda não consegue encontrar o que você precisa?

  • Contate-nos

    Você tem alguma pergunta sobre o Rainbow? Deixe-nos uma mensagem para obter mais informações.

    Contato
  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem