2025-11-24 19:58:19 +08:00
|
|
|
|
//
|
|
|
|
|
|
// KBHostAppLauncher.h
|
|
|
|
|
|
// keyBoard
|
|
|
|
|
|
//
|
|
|
|
|
|
// Created by Mac on 2025/11/24.
|
|
|
|
|
|
// 从扩展拉起主app
|
|
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2026-03-05 14:30:07 +08:00
|
|
|
|
#import <TargetConditionals.h>
|
|
|
|
|
|
#if __has_include(<UIKit/UIKit.h>)
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
#else
|
|
|
|
|
|
@class UIResponder;
|
|
|
|
|
|
#endif
|
2025-11-24 19:58:19 +08:00
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
@interface KBHostAppLauncher : NSObject
|
2026-03-05 14:30:07 +08:00
|
|
|
|
/// 在主 App 内打开 URL。注意:在 App Extension 环境下会直接返回 NO(扩展内请使用 `extensionContext openURL:`)。
|
2025-11-24 19:58:19 +08:00
|
|
|
|
+ (BOOL)openHostAppURL:(NSURL *)url fromResponder:(UIResponder *)startResponder;
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|