Screen:find()
在您的设备屏幕上执行图像或文本搜索,如果找到图像或文本则返回 MatchResult,否则返回 nil。
签名
Screen:find(template: string): MatchResult | nil
Screen:find(template: string, params: FinderParams): MatchResult | nil
Screen:find(template: string, timeout: number, params: FinderParams): MatchResult | nil
返回值
MatchResult 或 nil