Portal Fragment
An Android Fragment class containing an instance of a Portal to load in a web view supported by Capacitor.
Example usage (kotlin):
val fragment: PortalFragment = PortalFragment(myPortal)
Example usage (java):
PortalFragment fragment = new PortalFragment(myPortal);
Constructors
Functions
Add a Capacitor Plugin instance to be loaded with the Portal.
Adds a Capacitor WebViewListener to the Portal to trigger a callback on web view events.
Get the Initial Context that will be loaded in lieu of one set on the Portal object, if set.
Link a class with methods decorated with the PortalMethod annotation to use as Portals message receivers.
Extends the Android Fragment 'onConfigurationChanged' event.
Extends the Android Fragment onCreateView
lifecycle event.
Extends the Android Fragment 'onSaveInstanceState' event.
Extends the Android Fragment onViewCreated
lifecycle event. At this point in the lifecycle the fragment will attempt to load the Portal content. This is when the fragment will load any provided config or plugins.
Set an Initial Context that will be loaded in lieu of one set on the Portal object.