Skip to content

Force Touch Menu

levching edited this page Apr 15, 2020 · 4 revisions

With iOS 3d touch you can add addition app launch options that will look similar to the ones on the screenshot below:

ForceTouchMenu

If you want to add and handle similar menu items for your app, you need to complete 2 simple steps:

  1. Add menu items to your app using IOS Native settings:
ForceTouchMenu1
  1. Handle the menu items actions:

You can check if the application has been launched with shortcut item by checking GetAppOpenShortcutItem value. (if a value is empty, an application has been launched normally)

namespace SA.iOS.UIKit 
...
var iteam = ISN_UIApplication.ApplicationDelegate.GetAppOpenShortcutItem();
if(iteam != null) {
    Debug.Log(iteam.Type);
}

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally