2
This commit is contained in:
17
Shared/KBULBridge.h
Normal file
17
Shared/KBULBridge.h
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// KBULBridge.h
|
||||
// 通用的 UL/Scheme 拉起桥接常量(App 与键盘扩展共享)
|
||||
//
|
||||
// 用途:主 App 在成功处理 Universal Link(如 /ul/login)时,
|
||||
// 通过 Darwin 通知告知扩展“已拉起”,扩展据此取消回退到 Scheme。
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// 主 App 成功处理 Universal Link 后发送的 Darwin 通知名
|
||||
extern NSString * const KBDarwinULHandled; // "com.loveKey.nyx.ul.opened"
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
9
Shared/KBULBridge.m
Normal file
9
Shared/KBULBridge.m
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// KBULBridge.m
|
||||
//
|
||||
|
||||
#import "KBULBridge.h"
|
||||
|
||||
/// Darwin 跨进程通知:UL 已被主 App 处理
|
||||
NSString * const KBDarwinULHandled = @"com.loveKey.nyx.ul.opened";
|
||||
|
||||
Reference in New Issue
Block a user