Skip to main content

Since: 1.38.0

End Page

Call FSPage#end to mark the end of the view of the page. This will make the current page not defined, if the page is the current page. If the page is not the current page, this will have no effect.

Calling this method is only needed if you intend to leave portions of your app without defined pages. Otherwise, it is recommended to not call this method. For example, you may only wish to define pages for a checkout flow within your app. You would want to call end so when the user leaves the flow other portions of the app without defined pages won't be treated as part of the checkout page.

FSPage#end is analogous to onPause in an Activity or Fragment lifecycle and should typically be called there, if at all.

Additional Information

public void end();

Example Invocation

private FSPage page; // Initialized in onCreate

@Override
public void onPause() {
super.onPause();
page.end();
}