Xcode - 检查扩展类型

问题描述 投票:0回答:2

在 iOS 中,这里描述了几种应用程序扩展,我想知道如何区分每种类型。

在我当前的项目中,我有很多没有描述性名称的扩展。我怎样才能知道它们各自是什么类型的扩展?

xcode ios-app-extension
2个回答
2
投票

我终于发现我可以在每个扩展的 Info.plist 中检查扩展的类型。

例如,这些标识符分别属于通知服务扩展和通知内容扩展。

NSExtension -> NSExtensionPointIdentifier = com.apple.usernotifications.service 
NSExtension -> NSExtensionPointIdentifier = com.apple.usernotifications.content-extension

1
投票

Info.plist
-> NSExtensionPointIdentifier

Action -> com.apple.ui-services
com.apple.services
Custom Keyboard -> com.apple.keyboard-service
File Provider -> com.apple.fileprovider-nonui
File Provider UI -> com.apple.fileprovider-actionsui
(MacOS)Finder Sync -> com.apple.FinderSync
Message Filter -> com.apple.identitylookup.message-filter
Photo Editing -> com.apple.photo-editing
Share -> com.apple.share-services
Call Directory -> com.apple.callkit.call-directory
Account Authentication -> com.apple.authentication-services-account-authentication-modification-ui
Audio Unit -> com.apple.AudioUnit-UI
Authentication Service -> com.apple.AppSSO.idp-extension
AutoFill Credential Provider -> com.apple.authentication-services-credential-provider-ui
Broadcast Setup UI -> com.apple.broadcast-services-setupui
Broadcast Upload -> com.apple.broadcast-services-upload
ClassKit Context Provider -> com.apple.classkit.context-provider
Content Blocker -> com.apple.Safari.content-blocker
iMessage, Sticker Pack -> com.apple.message-payload-provider
Intents -> com.apple.intents-service
Intents UI -> com.apple.intents-ui-service
Network Extension -> com.apple.networkextension.app-proxy
Notification Content -> com.apple.usernotifications.content-extension

//Notification Service - iOS v10 and XCode v8 - allows you to download some content(image, audio, video) ad show it in notification banner(3D Touch). You have 30 seconds to download and save a content. UNNotificationServiceExtension
Notification Service -> com.apple.usernotifications.service

Persistent Token, (MacOS) Smart Card Token -> com.apple.ctk-tokens
(MacOS)Photo Project -> com.apple.photo-project
Quick Look Preview -> com.apple.quicklook.preview
(MacOS)Safari -> com.apple.Safari.extension
Spotlight Index -> com.apple.spotlight.index
Thumbnail -> com.apple.quicklook.thumbnail
(tvOS)TV Top Shelf -> com.apple.tv-top-shelf
Unwanted Communication -> com.apple.identitylookup.classification-ui
Widget(Today) -> com.apple.widgetkit-extension
(MacOS)Xcode Source Editor -> com.apple.dt.Xcode.extension.source-editor

[应用程序扩展(小部件又名今日)]

© www.soinside.com 2019 - 2024. All rights reserved.