Your Own URL Scheme

Custom URL schemes provide a way to reference resources inside the app. Users tapping a custom URL in an email, for example, launch the app in a specified context. Other apps can also trigger your app to launch with specific context data; for example, a photo library app might display a specified image.

This post describes a URL scheme that is supported by the MultiTimer app on iOS. This post describes the scheme that require special attributes or special formatting in order to be understood by the MultiTimer app. This post does not describe all URL schemes supported on different Apple platforms.


Base: multitimer://api/[action]?[action parameters]

x-callback-url: multitimer://x-callback-url/[action]?[action parameters]&[x-callback parameters]

Supported x-callback parameters: x-success, x-error and x-cancel.


START TIMER

/start-timer

Parameters
– name - timer label (required)
– board - board title (optional)


Example

multitimer://api/start-timer?name=Lunch&board=Work

TERMINATE TIMER
/stop-timer
Parameters
– name - timer label (required)
–board - board title (optional)

Example

multitimer://api/stop-timer?name=Lunch&board=Work

PAUSE TIMER
/pause-timer
Parameters
– name - timer label (required)
– board - board title (optional)

Example

multitimer://api/pause-timer?name=Lunch&board=Work

RESUME TIMER
/resume-timer
Parameters
– name - timer label (required)
– board - board title (optional)

Example

multitimer://api/resume-timer?name=Lunch&board=Work

RUN COMMAND
/run-command
Parameters
– name - command name (required)

Example

multitimer://api/run-command?name=Terminate%20all%20timers


How to use a link to a specific board when launching the application

"show-timer" - it is used to display the timer without performing any actions on it

[timer name] - name of your timer

[board name] - name of your board