GCKApplicationMetadata 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
继承 NSObject。实现 <NSCopy>。
- (NSString * __nullable) senderAppIdentifier |
|
|
|
发送方应用的标识符(应用 ID),与接收方应用对应(如果有)。
- (NSURL * __nullable) senderAppLaunchURL |
|
|
|
发送方应用的启动网址(网址架构),与接收方应用对应(如有)。
- (NSString*) applicationID |
|
readnonatomiccopy |
- (NSString*) applicationName |
|
readnonatomiccopy |
- (NSArray<NSString *>*) namespaces |
|
readnonatomiccopy |
与接收方应用对应的发送者应用的相关信息(如果有)。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe \u003ccode\u003eGCKApplicationMetadata\u003c/code\u003e class provides information about a receiver application, such as its ID, name, icon images, and supported namespaces.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details about the sender application, like its identifier and launch URL, if available.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eNSObject\u003c/code\u003e and conforms to the \u003ccode\u003eNSCopying\u003c/code\u003e protocol.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access properties like \u003ccode\u003eapplicationID\u003c/code\u003e, \u003ccode\u003eapplicationName\u003c/code\u003e, \u003ccode\u003eimages\u003c/code\u003e, \u003ccode\u003enamespaces\u003c/code\u003e, and \u003ccode\u003esenderApplicationInfo\u003c/code\u003e to get insights into the application.\u003c/p\u003e\n"],["\u003cp\u003eInstance methods such as \u003ccode\u003esenderAppIdentifier\u003c/code\u003e and \u003ccode\u003esenderAppLaunchURL\u003c/code\u003e provide further information about the sender application.\u003c/p\u003e\n"]]],["The GCKApplicationMetadata class provides information about a receiver application, including its unique ID, display name, and associated icon images. It details the supported protocol namespaces and offers details about any counterpart sender application, such as its identifier, launch URL, and overall information. The class also supports obtaining the sender application's identifier and launch URL if it has one.\n"],null,["# GCKApplicationMetadata Class\n\n[Instance Methods](#pub-methods) \\| [Properties](#properties) \nGCKApplicationMetadata Class Reference \n\nOverview\n--------\n\nInformation about a receiver application.\n\nInherits NSObject. Implements \\\u003cNSCopying\\\u003e.\n\n|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (NSString \\*__nullable) | - [senderAppIdentifier](/cast/v3/reference/ios/interface_g_c_k_application_metadata#a3b25159a06f73dd2920b1303cccdc3fd) |\n| | The identifier (app ID) of the sender application that is the counterpart to the receiver application, if any. [More...](#a3b25159a06f73dd2920b1303cccdc3fd) |\n| ||\n| (NSURL \\*__nullable) | - [senderAppLaunchURL](/cast/v3/reference/ios/interface_g_c_k_application_metadata#a6e1cbb23aa733cb0da98534dd1ced787) |\n| | The launch URL (URL scheme) for the sender application that is the counterpart to the receiver application, if any. [More...](#a6e1cbb23aa733cb0da98534dd1ced787) |\n| ||\n\n|-----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSString \\* | [applicationID](/cast/v3/reference/ios/interface_g_c_k_application_metadata#a01017243eeb33549821010e8590ede44) |\n| | The application's unique ID. [More...](#a01017243eeb33549821010e8590ede44) |\n| ||\n| NSString \\* | [applicationName](/cast/v3/reference/ios/interface_g_c_k_application_metadata#a059e07a17422e7bf24200aa78d677669) |\n| | The application's name, in a format that is appropriate for display. [More...](#a059e07a17422e7bf24200aa78d677669) |\n| ||\n| NSArray\\\u003c [GCKImage](/cast/v3/reference/ios/interface_g_c_k_image) \\* \\\u003e \\* | [images](/cast/v3/reference/ios/interface_g_c_k_application_metadata#a7a5c853718cb013f52bfac32569f6465) |\n| | Any icon images for the application, as an array of [GCKImage](/cast/v3/reference/ios/interface_g_c_k_image \"A class that represents an image that is located on a web server. \") objects. [More...](#a7a5c853718cb013f52bfac32569f6465) |\n| ||\n| NSArray\\\u003c NSString \\* \\\u003e \\* | [namespaces](/cast/v3/reference/ios/interface_g_c_k_application_metadata#a0f7be7333bfc643e66a69cbf40bf2886) |\n| | The set of protocol namespaces supported by this application. [More...](#a0f7be7333bfc643e66a69cbf40bf2886) |\n| ||\n| [GCKSenderApplicationInfo](/cast/v3/reference/ios/interface_g_c_k_sender_application_info) \\* | [senderApplicationInfo](/cast/v3/reference/ios/interface_g_c_k_application_metadata#a511189fe0d2dc8de3b00d75295230386) |\n| | Information about the sender application that is the counterpart to the receiver application, if any. [More...](#a511189fe0d2dc8de3b00d75295230386) |\n| ||\n\nMethod Detail\n-------------\n\n|------------------------------------------------|---|---|---|\n| - (NSString \\* __nullable) senderAppIdentifier | | | |\n\nThe identifier (app ID) of the sender application that is the counterpart to the receiver application, if any. \n\n|--------------------------------------------|---|---|---|\n| - (NSURL \\* __nullable) senderAppLaunchURL | | | |\n\nThe launch URL (URL scheme) for the sender application that is the counterpart to the receiver application, if any.\n\nProperty Detail\n---------------\n\n|-------------------------------------------------------------------|-------------------|\n| |------------------------------| | - (NSString\\*) applicationID | | readnonatomiccopy |\n\nThe application's unique ID. \n\n|-----------------------------------------------------------------------|-------------------|\n| |--------------------------------| | - (NSString\\*) applicationName | | readnonatomiccopy |\n\nThe application's name, in a format that is appropriate for display. \n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------|\n| |-------------------------------------------------------------------------------------| | - (NSArray\\\u003c[GCKImage](/cast/v3/reference/ios/interface_g_c_k_image) \\*\\\u003e\\*) images | | readnonatomiccopy |\n\nAny icon images for the application, as an array of [GCKImage](/cast/v3/reference/ios/interface_g_c_k_image \"A class that represents an image that is located on a web server. \") objects. \n\n|-----------------------------------------------------------------------------------------|-------------------|\n| |-----------------------------------------| | - (NSArray\\\u003cNSString \\*\\\u003e\\*) namespaces | | readnonatomiccopy |\n\nThe set of protocol namespaces supported by this application. \n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------|\n| |------------------------------------------------------------------------------------------------------------------------| | - ([GCKSenderApplicationInfo](/cast/v3/reference/ios/interface_g_c_k_sender_application_info)\\*) senderApplicationInfo | | readnonatomiccopy |\n\nInformation about the sender application that is the counterpart to the receiver application, if any."]]