Beagle v1.6 is no longer actively maintained. The documented version you are viewing may contain deprecated functionality. For up-to-date documentation, see the latest version .
Screen Request is an internal Beagle class used to request which screen you want to display. This class is used when you will need to call a Server-Driven page you want to load from an activity or a native fragment on Android.
At first, you will only list the URL attribute that referencing the page you want to load from BFF.
However, this class has other attributes, which can be used when transitioning between screens.
|URL||String||✓||Defines the endpoint that returns the screen or component you wish to display.|
|method||ScreenMethod||✓||It is an |
|headers||Map<String, String>||It is used when you need to send data via an HTTP header.|
|body||String||It is set default as |
It is an
ENUM and the values are:
To start a new
Activity, you have to use the
startActivity() method from an
Activity or a
Fragment creating a
ServerDrivenIntent passing through a
ScreenRequest with the BFF’s address of the screen, like the example below:
startActivity( newServerDrivenIntent<ServerDrivenActivity>( ScreenRequest("URL_WITH_SCREEN_ENDPOINT") ) )
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.