GNSStrategyParams Class
Stay organized with collections
Save and categorize content based on your preferences.
Optional params for a strategy. See properties with the same names in GNSStrategy.
Inherits NSObject.
|
GNSDiscoveryMode | discoveryMode |
|
GNSDiscoveryMediums | discoveryMediums |
|
BOOL | allowInBackground |
|
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 2025-08-12 UTC.
[null,null,["Last updated 2025-08-12 UTC."],[[["\u003cp\u003e\u003ccode\u003eGNSStrategyParams\u003c/code\u003e provides optional parameters for customizing a GNSStrategy.\u003c/p\u003e\n"],["\u003cp\u003eThese parameters include discovery mode, discovery mediums, and background detection allowance.\u003c/p\u003e\n"],["\u003cp\u003eThe properties in \u003ccode\u003eGNSStrategyParams\u003c/code\u003e correspond to those in the \u003ccode\u003eGNSStrategy\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# GNSStrategyParams Class\n\n[Properties](#properties) \nGNSStrategyParams Class Reference \n\nOverview\n--------\n\nOptional params for a strategy. See properties with the same names in [GNSStrategy](/nearby/messages/ios/reference/interface_g_n_s_strategy \"The strategy to use to detect nearby devices. \").\n\nInherits NSObject.\n\n|---------------------|-----------------------|\n| Property Summary ---------------- ||\n| GNSDiscoveryMode | **discoveryMode** |\n| ||\n| GNSDiscoveryMediums | **discoveryMediums** |\n| ||\n| BOOL | **allowInBackground** |\n| ||"]]