#Sample SDK integration
// iOS example: Install the Shortcut SDK with pod
override func viewDidLoad() {
super.viewDidLoad()
let shortcut = ShortcutApp.initWithEvent("12345", completion: completionBlock)
shortcut.setMainColor("#fff")
shortcut.setSecondaryColor("#000")
navigationController?.pushViewController(shortcut, animated: true)
}
// Android example: in build.gradle
dependencies {
...
compile 'com.shortcutapp.android:example-package'
}
// in activity
ShortcutApp shortcutApp = new ShortcutApp("12345", {
@Override void
onCompletion()
{
// your code
}
});
shortcutApp.setMainColor("#fff");
shortcutApp.setSecondaryColor("#000");
shortcutApp.show();