Custom Web View Presentation
Step 1: Implement a Receiver Class
public class SampleWebContentBroadcastReceiver extends NetmeraWebContentBroadcastReceiver {
@Override
public void onShow(Context context, Bundle bundle) {
// Trigger your web view flow here
}
@Override
public void onClose(Context context, Bundle bundle) {
// Handle web view closure here
}
}Step 2: Add Receiver Class to AndroidManifest.xml
AndroidManifest.xml<application>
...
<receiver
android:name="com.sample.SampleWebContentBroadcastReceiver"
android:exported="false">
<intent-filter>
<action android:name="com.netmera.web.content.SHOW" />
<action android:name="com.netmera.web.content.CLOSE" />
</intent-filter>
</receiver>
</application>Step 3: Let Netmera Handle the Received Web Content
Last updated
Was this helpful?