< UIKit >

UIFocusDebugger.h

2019-06-26  本文已影响0人  zhYx_

#if USE_UIKIT_PUBLIC_HEADERS || !__has_include(<UIKitCore/UIFocusDebugger.h>)
//
//  UIFocusDebugger.h
//  UIKit Framework
//
//  Copyright © 2017-�2018 Apple Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKitDefines.h>
@protocol UIFocusDebuggerOutput, UIFocusEnvironment, UIFocusItem;
NS_ASSUME_NONNULL_BEGIN





#pragma mark - 焦点交互调试器 Class
#pragma mark -
/*
 概述
    • 一组运行时实用程序,用于调试与焦点交互相关的问题
    • 不能在代码中使用此类和其方法,可以在调试时从lldb调试器命令行调用此类的方法,以获取有关焦点系统当前状态的信息
 */
NS_CLASS_AVAILABLE_IOS(11_0) @interface UIFocusDebugger : NSObject

// 帮助 (返回有关使用此调试器的命令信息)
+ (id<UIFocusDebuggerOutput>)help;
// 状态 (输出当前焦点项目的信息)
+ (id<UIFocusDebuggerOutput>)status;
// 检查项目的可聚焦性 (返回有关项目是否可以聚焦的信息,包括任何可能阻止项目聚焦的已知问题;用法:po [UIFocusDebugger checkFocusabilityForItem:<item reference>])
+ (id<UIFocusDebuggerOutput>)checkFocusabilityForItem:(id<UIFocusItem>)item;
// 模拟来自指定环境的焦点更新请求 (用法:po [UIFocusDebugger simulateFocusUpdateRequestFromEnvironment:<environment reference>])
+ (id<UIFocusDebuggerOutput>)simulateFocusUpdateRequestFromEnvironment:(id<UIFocusEnvironment>)environment;

@end





///!!!: 焦点交互调试器输出接口 <协议>
NS_CLASS_AVAILABLE_IOS(11_0) @protocol UIFocusDebuggerOutput <NSObject>
@end



NS_ASSUME_NONNULL_END
#else
#import <UIKitCore/UIFocusDebugger.h>
#endif

上一篇 下一篇

猜你喜欢

热点阅读