מחלקת GCKDiscoveryParameter
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
קריטריוני סינון לזיהוי מכשירים.
- מאז
- 4.0
ירש את NSObject, <NS Copy> ו-<NSSecureCoding>.
- (instancetype) initWithApplicationID: |
|
(NSString *) |
applicationID |
|
המערכת מפעילה GCKDiscoveryCriteria חדש עם מזהה אפליקציה של המקבל.
- Parameters
-
applicationID | The receiver application ID. |
- (instancetype) initWithNamespaces: |
|
(NSSet< NSString * > *) |
namespaces |
|
הפונקציה מפעילה GCKDiscoveryCriteria חדש עם המאפיינים הנתונים.
- Parameters
-
namespaces | A set of namespaces. |
- (NSString* const) kGCKDefaultMediaReceiverApplicationID |
מזהה האפליקציה של המקבל עבור מקלט המדיה שמוגדר כברירת מחדל.
- (NSOrderedSet<NSString *>*) applicationIDs |
|
readnonatomicstrong |
רשימת מזהי אפליקציות נתמכים של מקלטים שאפשר לבדוק.
- (BOOL) hasApplicationIDs |
|
readnonatomicassign |
האם קריטריוני הגילוי כוללים מזהי אפליקציות כלשהם.
- (NSSet<NSString *>*) namespaces |
|
readnonatomicstrong |
רשימה של מרחבי שמות נתמכים לבדיקה.
האם קריטריוני הגילוי כוללים מרחבי שמות כלשהם.
- (NSSet<NSString *>*) allSubtypes |
|
readnonatomicstrong |
קריטריוני הגילוי כקבוצה של סוגי משנה של mDNS.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 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."]]