Skip to content

Android GuideBlocks

Contextual GuideBlocks lets developers render their own UI while utilising Contextual's powerful guide matching engine. This is useful if you have a custom UI that Contextual do not provide out of the box.

Note A sample integration is available on our Github

Steps

  1. First ensure Contextual#init has been called
  2. Next call registerGuideBlock
    1
    2
    3
    4
    5
    6
            val customWidget = "AdhocRowInsertion"
            Contextual.registerGuideBlock(customWidget).observe(viewLifecycleOwner){ contextualContainer ->
                if(contextualContainer.guidePayload.guide.guideBlock.contentEquals(customWidget)){
                    // Show your UI here
                }
            }
    

Last update: 2024-01-16