RunnableHandler Interface

Implement this interface to handle an action.

Usage

Create an Apex class that implements this interface as a callback for your action or event dispatcher.

1public class MySlashCommandDispatcher extends Slack.SlashCommandDispatcher {
2
3    public override Slack.ActionHandler invoke(Slack.SlashCommandParameters parameters, Slack.RequestContext context) {
4        return Slack.ActionHandler.ack(new Handler());
5    }
6
7    public class Handler implements Slack.RunnableHandler {
8        public void run () {
9            System.debug('My Callback');
10        }
11    }
12}

RunnableHandler Methods 

RunnableHandler has the following method.

run() 

A callback method for the dispatcher handler, such as for a class that extends Slack.SlashCommandDispatcher or Slack.ShortcutDispatcher.

Signature

1public void run()

Return Value

Type: void

Beta Feature

This feature is not generally available. It is not part of your purchased Services. This feature is subject to change, may be discontinued with no notice at any time in SFDC’s sole discretion, and SFDC may never make this feature generally available. Make your purchase decisions only on the basis of generally available products and features. This feature is made available on an AS IS basis and use of this feature is at your sole risk.