disable

fun disable()

Disables the agent.

It will send the events of the previous media ID, then it will stop sending events till setMediaId is called again.

When the agent is disabled, calling addEvent will return false.