GNSSubscriptionParams ক্লাস
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সাবস্ক্রিপশনের জন্য ঐচ্ছিক পরামিতি।
প্রতিটি প্যারামিটারের ব্যাখ্যার জন্য নীচের সম্পত্তি ঘোষণা দেখুন।
উত্তরাধিকারসূত্রে এনএসওবজেক্ট।
- (GNSDeviceTypes) deviceTypesToDiscover |
|
read write nonatomic assign |
আবিষ্কার করার জন্য ডিভাইসের প্রকার।
ডিফল্ট হল kGNSDeviceUsingNearby
.
- (NSString*) messageNamespace |
|
read write nonatomic assign |
মেসেজের নামস্থান।
খালি স্ট্রিং হল ডিফল্ট নেমস্পেস, এবং প্রতিটি অ্যাপের জন্য ব্যক্তিগত (বা Google ডেভেলপার কনসোল প্রোজেক্ট শেয়ার করা অ্যাপ)।
|
read write nonatomic assign |
মেসেজের ধরন মেলে। শূন্য হতে হবে না। খালি স্ট্রিং হল ডিফল্ট প্রকার।
|
read write nonatomic assign |
কাছাকাছি ডিভাইস (নন-বীকন) আবিষ্কারের জন্য ব্যবহার করার কৌশল।
|
read write nonatomic assign |
বীকন স্ক্যানিংয়ের জন্য ব্যবহার করার কৌশল।
- (GNSOperationStatusHandler) statusHandler |
|
read write nonatomic copy |
সাবস্ক্রিপশন স্ট্যাটাসের জন্য একজন হ্যান্ডলার।
এটি একটি নতুন তৈরি সাবস্ক্রিপশনের স্থিতি ট্র্যাক করার জন্য ব্যবহার করা যেতে পারে।
- (GNSPermissionRequestHandler) permissionRequestHandler |
|
read write nonatomic copy |
কাছাকাছি ব্যবহার করার জন্য ব্যবহারকারীর অনুমতির অনুরোধ করার জন্য একটি হ্যান্ডলার।
এই হ্যান্ডলারটি Nearby দ্বারা ব্যবহৃত ডিফল্ট ডায়ালগ ওভাররাইড করে; আপনি যদি এই হ্যান্ডলারটি সরবরাহ করেন, কাছাকাছি এর অনুমতি ডায়ালগ দেখাবে না।
আপনার অনুরোধ হ্যান্ডলারে, কেন এটি ব্যবহার করা হচ্ছে তা ব্যাখ্যা করে যে কাজটির জন্য Nearby ব্যবহার করা প্রয়োজন সেটি সম্পাদন করার জন্য আপনাকে ব্যবহারকারীর অনুমতির অনুরোধ করা উচিত। যখন ব্যবহারকারী সম্মতি দেয় বা অস্বীকার করে, তখন আপনাকে অবশ্যই আপনার অনুরোধ হ্যান্ডলারে পাস করা ব্লকটিকে কল করতে হবে। আপনি যদি ব্লকে YES
পাস করেন, তাহলে এর মানে ব্যবহারকারী Nearby কাজ করার অনুমতি দিতে সম্মতি দিয়েছেন। আপনি যদি NO
পাস করেন, তাহলে এর মানে ব্যবহারকারী সম্মতি দেননি; সম্মতি না দেওয়া পর্যন্ত আপনার প্রকাশনা এবং সদস্যতা কাজ করবে না।
iOS অনুমতি ডায়ালগের জন্য হ্যান্ডলারটিকে "প্রিফ্লাইটিং" এর একটি পদ্ধতি হিসাবেও ব্যবহার করা যেতে পারে। আপনি এটি ব্যবহার করে ব্যাখ্যা করতে পারেন যে কেন ব্যবহারকারীর কাছে আপনার অ্যাপটি তার কাছাকাছি সম্পর্কিত ফাংশনগুলি সম্পাদন করার আগে iOS অনুমতিগুলিতে সম্মতি দেবে বলে আশা করা হচ্ছে৷
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-13 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-13 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eGNSSubscriptionParams\u003c/code\u003e provides optional parameters for customizing Nearby Messages subscriptions.\u003c/p\u003e\n"],["\u003cp\u003eParameters include device types, message namespace and type, discovery strategies, and handlers for status and permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estrategy\u003c/code\u003e property controls discovery of Nearby devices, while \u003ccode\u003ebeaconStrategy\u003c/code\u003e is for beacon scanning.\u003c/p\u003e\n"],["\u003cp\u003eYou can define handlers to monitor subscription status and manage user permission requests for Nearby.\u003c/p\u003e\n"],["\u003cp\u003eDefault values are provided for most parameters, simplifying basic subscription setup.\u003c/p\u003e\n"]]],[],null,["# GNSSubscriptionParams Class\n\n[Properties](#properties) \nGNSSubscriptionParams Class Reference \n\nOverview\n--------\n\nOptional parameters for a subscription.\n\nSee the property declarations below for explanations of each parameter.\n\nInherits NSObject.\n\n|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| GNSDeviceTypes | [deviceTypesToDiscover](/nearby/messages/ios/reference/interface_g_n_s_subscription_params#aa972c219c7211e4a7c5fa785d0b11274) |\n| | The types of devices to discover. [More...](#aa972c219c7211e4a7c5fa785d0b11274) |\n| ||\n| NSString \\* | [messageNamespace](/nearby/messages/ios/reference/interface_g_n_s_subscription_params#a70e97d712c8bc53a7f9076055a91256a) |\n| | The message namespace to match. [More...](#a70e97d712c8bc53a7f9076055a91256a) |\n| ||\n| NSString \\* | [type](/nearby/messages/ios/reference/interface_g_n_s_subscription_params#a86a3f486660ee32e5824b03fcef62533) |\n| | The message type to match. Must not be nil. The empty string is the default type. [More...](#a86a3f486660ee32e5824b03fcef62533) |\n| ||\n| [GNSStrategy](/nearby/messages/ios/reference/interface_g_n_s_strategy) \\* | [strategy](/nearby/messages/ios/reference/interface_g_n_s_subscription_params#a20f64cb0cfd8890f640536dfb586e814) |\n| | The strategy to use for discovering Nearby devices (non-beacons). [More...](#a20f64cb0cfd8890f640536dfb586e814) |\n| ||\n| [GNSBeaconStrategy](/nearby/messages/ios/reference/interface_g_n_s_beacon_strategy) \\* | [beaconStrategy](/nearby/messages/ios/reference/interface_g_n_s_subscription_params#a2a2c2aecb81fef6ff47fc4204110f6da) |\n| | The strategy to use for beacon scanning. [More...](#a2a2c2aecb81fef6ff47fc4204110f6da) |\n| ||\n| GNSOperationStatusHandler | [statusHandler](/nearby/messages/ios/reference/interface_g_n_s_subscription_params#afb1a6c67329810c58745f2f4625240cc) |\n| | A handler for subscription status. [More...](#afb1a6c67329810c58745f2f4625240cc) |\n| ||\n| GNSPermissionRequestHandler | [permissionRequestHandler](/nearby/messages/ios/reference/interface_g_n_s_subscription_params#ac037a18632caddcdb730bdb2a0f9c1b1) |\n| | A handler for requesting user permission to use Nearby. [More...](#ac037a18632caddcdb730bdb2a0f9c1b1) |\n| ||\n\nProperty Detail\n---------------\n\n|-------------------------------------------------------------------------------------------|--------------------------|\n| |------------------------------------------| | - (GNSDeviceTypes) deviceTypesToDiscover | | readwritenonatomicassign |\n\nThe types of devices to discover.\n\nThe default is `kGNSDeviceUsingNearby`. \n\n|-------------------------------------------------------------------------|--------------------------|\n| |---------------------------------| | - (NSString\\*) messageNamespace | | readwritenonatomicassign |\n\nThe message namespace to match.\n\nThe empty string is the default namespace, and is private to each app (or apps sharing a Google Developer Console project). \n\n|-------------------------------------------------|--------------------------|\n| |---------------------| | - (NSString\\*) type | | readwritenonatomicassign |\n\nThe message type to match. Must not be nil. The empty string is the default type. \n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------|\n| |---------------------------------------------------------------------------------------| | - ([GNSStrategy](/nearby/messages/ios/reference/interface_g_n_s_strategy)\\*) strategy | | readwritenonatomicassign |\n\nThe strategy to use for discovering Nearby devices (non-beacons). \n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------|\n| |----------------------------------------------------------------------------------------------------------| | - ([GNSBeaconStrategy](/nearby/messages/ios/reference/interface_g_n_s_beacon_strategy)\\*) beaconStrategy | | readwritenonatomicassign |\n\nThe strategy to use for beacon scanning. \n\n|-------------------------------------------------------------------------------------------------|------------------------|\n| |---------------------------------------------| | - (GNSOperationStatusHandler) statusHandler | | readwritenonatomiccopy |\n\nA handler for subscription status.\n\nIt can be used for tracking the status of a newly created subscription. \n\n|---------------------------------------------------------------------------------------------------------------------------|------------------------|\n| |----------------------------------------------------------| | - (GNSPermissionRequestHandler) permissionRequestHandler | | readwritenonatomiccopy |\n\nA handler for requesting user permission to use Nearby.\n\nThis handler overrides the default dialog used by Nearby; if you supply this handler, Nearby will not show its permission dialog.\n\nIn your request handler, you should request the user's permission to perform the task that requires the use of Nearby, explaining why it's being used. When the user has given or denied consent, you must call the block that's passed into your request handler. If you pass `YES` into the block, it means the user has consented to allow Nearby to function. If you pass `NO`, it means the user has not consented; your publications and subscriptions will not work until consent has been given.\n\nThe handler can also be used as a method of \"preflighting\" for the iOS permission dialogs. You can use it to explain why the user is expected to consent to the iOS permissions before your app can perform its Nearby related functions."]]