Under the UEM Mobile settings you can disable the collection of lifecycle events, crashlogs, and errors, shown in the link below.
When unchecking these options this isnt disabling the agent or agent function running in the mobile app, it is just disabling the collection of the data on the Web Server side, correct?
secondly if this is true is there a way to disable the agent at runtime?
Yes that would be disabling certain aspects of the data collection. As far as fully disabling at runtime, I'm not fully sure that is possible but if you would like to limit overhead being generated I would take the slider in the UEM tab for the mobile application and slide it to the far left to stop collection of data and I believe limit overhead being collected by the agent as it will not be looking for any data.
thanks for the 2nd opinion, I think the mobile app team was concerned that is the Mobile Agent caused a problem that was released to the public they would want to disable the agent without having to push a new release through the app stores.
Turning UEM off for the mobile application with the slider indeed sends the mobile agent a response to stop capturing data, but it does not remove the instrumentation code. This is not possible during runtime. But when capturing is off mobile agent overhead is basically zero.