문제

I now we can use contextIdAtPosition method to get context id of the front most application, but how can I use context id to get the bundle identifier of the front most application?Thank you!

도움이 되었습니까?

해결책

If you only need the identifier of the front most app, you need to check out SpringBoard class.

@interface SBApplication : NSObject
-(NSString *)displayIdentifier;
@end

@interface SpringBoard : UIApplication
-(SBApplication *)_accessibilityFrontMostApplication;
@end
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top