# Storyly Fragment Overlay

Storyly supports overlay fragments and this guide shows you how to show and dismiss fragment over Storyly.

Before you begin

You need to have the working Storyly integration as described in Quick Start

WARNING

Before you start, you need to be sure that context is FragmentActivity to show fragment over Storyly. Otherwise, fragment will not show.

# Show fragment overlay Storyly

Showing fragment(s) over Storyly is quite straightforward. Once you create a Storyly instance and fragment instance, just send fragment to showExternalFragment method as a parameter.

As a note, Storyly automatically pauses the story and shows the fragment over it.

    # Dismiss latest fragment

    When you need to dismiss latest fragment, just call dismissLatestFragment method. Storyly automatically resumes the story and dismisses the latest fragment.

      # Dismiss all fragment

      When you need to dismiss all showned fragments, just call dismissAllFragments method. Storyly automatically resumes the story and dismisses all fragments.