Skip to main content

IContextActionsListener

Implementation​

In order inject your customized logging for your reports or you want to perform any other action when handling Mobile contexts, you can implement this class and provide your implementations for different methods available in this listener interface.

onContexts​

This method will get executed after getting all the available contexts.

onCurrentContext​

This method will get executed after getting the current context.

onSwitchToNative​

This method will get executed after switching to native context.

onSwitchToWebView (name)​

This method will get executed after switching to web view context by its provided name.

onSwitchToWebView​

This method will get executed after switching to the default web view context.