android-components / mozilla.components.feature.intent / IntentProcessor / registerHandler

# registerHandler

`fun registerHandler(action: String, handler: IntentHandler): Unit` (source)

Registers the given handler to be invoked for intents with the given action. If a handler is already present it will be overwritten.

### Parameters

`action` - the intent action which should trigger the provided handler.

`handler` - the intent handler to be registered.