با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
<GNSSubscription> مرجع پروتکل
بررسی اجمالی
یک شیء اشتراک نشان دهنده عمل اشتراک در پیام هایی از نوع خاصی از دستگاه های مجاور است.
تا زمانی که کتابخانه پیام زنده است، تا زمانی که شرایط مورد نیاز وجود داشته باشد (مثلاً برنامه باید در پیش زمینه باشد) تمام تلاش خود را برای ارائه پیام هایی که با نوع اشتراک مطابقت دارند انجام می دهد. هنگامی که پیام ها کشف یا گم می شوند، کنترل کننده های پیام فراخوانی می شوند. هنگامی که شیء اشتراک واگذار شود، تحویل پیام متوقف خواهد شد.
تاریخ آخرین بهروزرسانی 2024-10-26 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2024-10-26 بهوقت ساعت هماهنگ جهانی."],[[["The GNSSubscription protocol enables subscribing to specific message types from nearby devices."],["Active subscriptions trigger message delivery to the app, primarily when it's in the foreground, based on defined criteria."],["Message handlers manage the discovery and loss of messages, ensuring appropriate actions are taken."],["Deallocation of the subscription object halts further message delivery to the application."]]],["A subscription object enables receiving specific message types from nearby devices. The messages library actively delivers matching messages while the subscription is active, under certain conditions (e.g., app foreground). Message handlers are triggered upon message discovery or loss. Deallocating the subscription object stops message delivery. It inherits from `NSObject`.\n"]]