What is called after Share screen is selected?

Hopefully someone can point me in the right direction. I’m looking for what code is called when Share screen is selected from the share option menu. I wan to bypass the menu completely, start sharing the screen and go directly into a take photo intent. If someone can point me to the file and line in the example I would greatly appreciate it. I though I had it tracked down when I call the call th ShareComponent but while the other party gets a notification that I’ve started sharing the image they see is just black. This is how I"m calling ShareComponent

val shareComponent: ShareComponent = ShareComponent(this)

shareComponent.processShareRequest( 1013,-1,takePictureIntent)

Thanks in advance for pointing me in the right direction.

Hi jack,

Thanks for the post. The ShareComponent is not a public available SDK class so we do not recommend using it. If you would like to modify the content when you start sharing your screen, you may do the following:

  1. In your config.xml file, add the following(You may define your own class name):
<!-- share custom screen handler class. It must implement com.zipow.videobox.util.IShareCustomScreenHandler -->
    <string name="zm_config_share_custom_screen_handler">us.zoom.sdkexample.MyShareCustomScreenHandler</string>
  1. Then create a new class, for example, call MyShareCustomScreenHandler, then implements the IShareCustomScreenHandler. You will need to implement the onStartedShareCustomScreen method and the getShareCustomScreenName method, when the screen sharing session starts, these 2 methods will be triggered, you may implement the event/action that you would like to share in these callbacks:
public class MyShareCustomScreenHandler implements IShareCustomScreenHandler {
    @Override
    public void onStartedShareCustomScreen(Context context) {


    }

    @Override
    public String getShareCustomScreenName(Context context) {
        return null;
    }
}

Hope this helps. Thanks!