PluginBase Class
The base plugin for Teams app plugins.
Constructor
PluginBase()
Methods
| on_activity |
Called by the App when an activity is received. |
| on_activity_response |
Called by the App when an activity response is sent. |
| on_activity_sent |
Called by the App when an activity is sent |
| on_error |
Called by the App when an error occurs. |
| on_init |
Lifecycle method called by the App when the plugin is initialized. |
| on_start |
Lifecycle method called by the App when the plugin is started. |
| on_stop |
Lifecycle method called by the App once during shutdown. |
on_activity
Called by the App when an activity is received.
async on_activity(event: PluginActivityEvent) -> None
Parameters
| Name | Description |
|---|---|
|
event
Required
|
|
on_activity_response
Called by the App when an activity response is sent.
async on_activity_response(event: PluginActivityResponseEvent) -> None
Parameters
| Name | Description |
|---|---|
|
event
Required
|
|
on_activity_sent
Called by the App when an activity is sent
async on_activity_sent(event: PluginActivitySentEvent) -> None
Parameters
| Name | Description |
|---|---|
|
event
Required
|
|
on_error
Called by the App when an error occurs.
async on_error(event: PluginErrorEvent) -> None
Parameters
| Name | Description |
|---|---|
|
event
Required
|
|
on_init
Lifecycle method called by the App when the plugin is initialized.
async on_init() -> None
on_start
Lifecycle method called by the App when the plugin is started.
async on_start(event: PluginStartEvent) -> None
Parameters
| Name | Description |
|---|---|
|
event
Required
|
|
on_stop
Lifecycle method called by the App once during shutdown.
async on_stop() -> None