/*
UNNotificationActionOptionAuthenticationRequired = (1 << 0),
UNNotificationActionOptionDestructive = (1 << 1), 取消
UNNotificationActionOptionForeground = (1 << 2), 启动程序
*/
UNTextInputNotificationAction *textAction = [UNTextInputNotificationAction actionWithIdentifier:@"my_text" title:@"text_action" options:UNNotificationActionOptionForeground textInputButtonTitle:@"输入" textInputPlaceholder:@"默认文字"];
UNNotificationAction *action = [UNNotificationAction actionWithIdentifier:@"my_action" title:@"action" options:UNNotificationActionOptionDestructive];
UNNotificationAction *action_1 = [UNNotificationAction actionWithIdentifier:@"my_action_1" title:@"action_1" options:UNNotificationActionOptionAuthenticationRequired];
/*
UNNotificationCategoryOptionNone = (0),
UNNotificationCategoryOptionCustomDismissAction = (1 << 0),
UNNotificationCategoryOptionAllowInCarPlay = (2 << 0),
*/
UNNotificationCategory *category = [UNNotificationCategory categoryWithIdentifier:@"my_category" actions:@[textAction,action,action_1] intentIdentifiers:@[] options:UNNotificationCategoryOptionCustom