GCKDiscoveryCriteria-Klasse
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Filterkriterien für die Geräteerkennung.
- Seit
- 4,0
Übernimmt NSObject, <NSKopieren> und <NSSecureCoding>.
|
NSOrderedSet< NSString * > * | applicationIDs |
| Eine Liste der unterstützten Empfängeranwendungs-IDs, die getestet werden sollen. Mehr...
|
|
BOOL | hasApplicationIDs |
| Gibt an, ob die Erkennungskriterien App-IDs enthalten. Mehr...
|
|
NSSet< NSString * > * | namespaces |
| Eine Liste der unterstützten Namespaces, die getestet werden sollen. Mehr...
|
|
BOOL | hasNamespaces |
| Gibt an, ob die Erkennungskriterien Namespaces enthalten. Mehr...
|
|
NSSet< NSString * > * | allSubtypes |
| Die Erkennungskriterien als eine Reihe von mDNS-Untertypen. Mehr...
|
|
- (instancetype) initWithApplicationID: |
|
(NSString *) |
applicationID |
|
Initialisiert einen neuen GCKDiscoveryCriteria mit einer Empfängeranwendungs-ID.
- Parameters
-
applicationID | The receiver application ID. |
- (instancetype) initWithNamespaces: |
|
(NSSet< NSString * > *) |
namespaces |
|
Initialisiert eine neue GCKDiscoveryCriteria mit den angegebenen Attributen.
- Parameters
-
namespaces | A set of namespaces. |
- (NSString* const) kGCKDefaultMediaReceiverApplicationID |
Die Anwendungs-ID des Empfängers für den Standard-Medienempfänger.
- (NSOrderedSet<NSString *>*) applicationIDs |
|
readnonatomicstrong |
Eine Liste der unterstützten Empfängeranwendungs-IDs, die getestet werden sollen.
- (BOOL) hasApplicationIDs |
|
readnonatomicassign |
Gibt an, ob die Erkennungskriterien App-IDs enthalten.
- (NSSet<NSString *>*) namespaces |
|
readnonatomicstrong |
Eine Liste der unterstützten Namespaces, die getestet werden sollen.
Gibt an, ob die Erkennungskriterien Namespaces enthalten.
- (NSSet<NSString *>*) allSubtypes |
|
readnonatomicstrong |
Die Erkennungskriterien als eine Reihe von mDNS-Untertypen.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eGCKDiscoveryCriteria\u003c/code\u003e filters devices during discovery based on application IDs and namespaces.\u003c/p\u003e\n"],["\u003cp\u003eIt can be initialized with a specific receiver application ID or a set of namespaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eapplicationIDs\u003c/code\u003e and \u003ccode\u003enamespaces\u003c/code\u003e properties provide lists of supported identifiers for filtering.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ehasApplicationIDs\u003c/code\u003e and \u003ccode\u003ehasNamespaces\u003c/code\u003e indicate whether specific filtering criteria are applied.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eallSubtypes\u003c/code\u003e represents the criteria as a set of mDNS subtypes for low-level discovery mechanisms.\u003c/p\u003e\n"]]],[],null,["# GCKDiscoveryCriteria Class\n\n[Instance Methods](#pub-methods) \\| [Public Attributes](#pub-attribs) \\| [Properties](#properties) \nGCKDiscoveryCriteria Class Reference \n\nOverview\n--------\n\nDevice discovery filter criteria.\n\nSince\n: 4.0\n\nInherits NSObject, \\\u003cNSCopying\\\u003e, and \\\u003cNSSecureCoding\\\u003e.\n\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (instancetype) | - [initWithApplicationID:](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#a24380d2a971176bc43cd24abebce1510) |\n| | Initializes a new [GCKDiscoveryCriteria](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria \"Device discovery filter criteria. \") with a receiver application ID. [More...](#a24380d2a971176bc43cd24abebce1510) |\n| ||\n| (instancetype) | - [initWithNamespaces:](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#a44657abda59243628d45b0a338043e03) |\n| | Initializes a new [GCKDiscoveryCriteria](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria \"Device discovery filter criteria. \") with the given attributes. [More...](#a44657abda59243628d45b0a338043e03) |\n| ||\n\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| Public Attributes ----------------- ||\n| NSString \\*const | [kGCKDefaultMediaReceiverApplicationID](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#afdc0b28918da784869cab98df3698294) |\n| | The receiver application ID for the Default Media Receiver. [More...](#afdc0b28918da784869cab98df3698294) |\n| ||\n\n|----------------------------------|--------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| NSOrderedSet\\\u003c NSString \\* \\\u003e \\* | [applicationIDs](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#ac62a8989a1d83e979432a903bb00dbf4) |\n| | A list of supported receiver application IDs to test for. [More...](#ac62a8989a1d83e979432a903bb00dbf4) |\n| ||\n| BOOL | [hasApplicationIDs](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#a278562e6824ef0384ffb782208a81b7a) |\n| | Whether the discovery criteria includes any application IDs. [More...](#a278562e6824ef0384ffb782208a81b7a) |\n| ||\n| NSSet\\\u003c NSString \\* \\\u003e \\* | [namespaces](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#a297cd043c233ee70b02ba5ae742358e8) |\n| | A list of supported namespaces to test for. [More...](#a297cd043c233ee70b02ba5ae742358e8) |\n| ||\n| BOOL | [hasNamespaces](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#a03c01a7813e02e552d2e3bd705a371fc) |\n| | Whether the discovery criteria includes any namespaces. [More...](#a03c01a7813e02e552d2e3bd705a371fc) |\n| ||\n| NSSet\\\u003c NSString \\* \\\u003e \\* | [allSubtypes](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria#af39a3d45e9d41cf0fd4ca4234f1d5727) |\n| | The discovery criteria as a set of mDNS subtypes. [More...](#af39a3d45e9d41cf0fd4ca4234f1d5727) |\n| ||\n\nMethod Detail\n-------------\n\n|-----------------------------------------|---|---------------|-----------------|---|\n| - (instancetype) initWithApplicationID: | | (NSString \\*) | *applicationID* | |\n\nInitializes a new [GCKDiscoveryCriteria](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria \"Device discovery filter criteria. \") with a receiver application ID.\n\nParameters\n:\n\n |---------------|------------------------------|\n | applicationID | The receiver application ID. |\n\n\n|--------------------------------------|---|-----------------------------|--------------|---|\n| - (instancetype) initWithNamespaces: | | (NSSet\\\u003c NSString \\* \\\u003e \\*) | *namespaces* | |\n\nInitializes a new [GCKDiscoveryCriteria](/cast/docs/reference/ios/interface_g_c_k_discovery_criteria \"Device discovery filter criteria. \") with the given attributes.\n\nParameters\n:\n\n |------------|----------------------|\n | namespaces | A set of namespaces. |\n\n\nMember Data Documentation\n-------------------------\n\n|------------------------------------------------------------|\n| - (NSString\\* const) kGCKDefaultMediaReceiverApplicationID |\n\nThe receiver application ID for the Default Media Receiver.\n\nProperty Detail\n---------------\n\n|-----------------------------------------------------------------------------------------------------------|---------------------|\n| |--------------------------------------------------| | - (NSOrderedSet\\\u003cNSString \\*\\\u003e\\*) applicationIDs | | readnonatomicstrong |\n\nA list of supported receiver application IDs to test for. \n\n|---------------------------------------------------------------|---------------------|\n| |----------------------------| | - (BOOL) hasApplicationIDs | | readnonatomicassign |\n\nWhether the discovery criteria includes any application IDs. \n\n|-------------------------------------------------------------------------------------|---------------------|\n| |---------------------------------------| | - (NSSet\\\u003cNSString \\*\\\u003e\\*) namespaces | | readnonatomicstrong |\n\nA list of supported namespaces to test for. \n\n|-------------------------------------------------------|---------------------|\n| |------------------------| | - (BOOL) hasNamespaces | | readnonatomicassign |\n\nWhether the discovery criteria includes any namespaces. \n\n|---------------------------------------------------------------------------------------|---------------------|\n| |----------------------------------------| | - (NSSet\\\u003cNSString \\*\\\u003e\\*) allSubtypes | | readnonatomicstrong |\n\nThe discovery criteria as a set of mDNS subtypes."]]