GCKDiscoveryCriteria Class
Stay organized with collections
Save and categorize content based on your preferences.
Device discovery filter criteria.
- Since
- 4.0
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
- (instancetype) initWithApplicationID: |
|
(NSString *) |
applicationID |
|
Initializes a new GCKDiscoveryCriteria with a receiver application ID.
- Parameters
-
applicationID | The receiver application ID. |
- (instancetype) initWithNamespaces: |
|
(NSSet< NSString * > *) |
namespaces |
|
Initializes a new GCKDiscoveryCriteria with the given attributes.
- Parameters
-
namespaces | A set of namespaces. |
- (NSString* const) kGCKDefaultMediaReceiverApplicationID |
The receiver application ID for the Default Media Receiver.
- (NSOrderedSet<NSString *>*) applicationIDs |
|
readnonatomicstrong |
A list of supported receiver application IDs to test for.
- (BOOL) hasApplicationIDs |
|
readnonatomicassign |
Whether the discovery criteria includes any application IDs.
- (NSSet<NSString *>*) namespaces |
|
readnonatomicstrong |
A list of supported namespaces to test for.
Whether the discovery criteria includes any namespaces.
- (NSSet<NSString *>*) allSubtypes |
|
readnonatomicstrong |
The discovery criteria as a set of mDNS subtypes.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 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."]]