تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الدمج هو
لمعالجة الأحداث غير المتزامنة من خلال الجمع بين عوامل تشغيل معالجة الأحداث.
تسهّل ميزة "دمج" قراءة التعليمات البرمجية والحفاظ عليها من خلال تمركز رمز معالجة الأحداث.
مكتبة GoogleMapsPlatformIntegration
هي مكتبة Swift تعرض
Publishers
لحزمة تطوير البرامج بالاستناد إلى بيانات "خرائط Google" لتطبيقات iOS وحزمة تطوير البرامج للأماكن لنظام التشغيل iOS بحيث يمكنك الاستفادة من
من المجموعة الغنية بصريًا لميزات الدمج.
تتضمن مكتبة GoogleMapsPlatformAggregate
صف واحد (GMSMapViewPublisher)
الذي يحتوي على خصائص الناشرين التي تتيح لك الاشتراك في الأحداث الصادرة عن الخريطة.
يضبط المثال التالي مثيل GMSMapViewPublisher للاشتراك في
أحداث تغيير الكاميرا:
let publisher = GMSMapViewPublisher(mapView:mapView)publisher.didChangeCameraPosition.sink { cameraPosition inprint("Camera position at \(cameraPosition.target)")}
تاريخ التعديل الأخير: 2025-06-13 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-06-13 (حسب التوقيت العالمي المتفَّق عليه)"],[[["GoogleMapsPlatformCombine is a Swift library that integrates the Maps SDK for iOS and Places SDK for iOS with Apple's Combine framework."],["This library provides Publishers for various SDK functionalities, allowing developers to leverage Combine's features for asynchronous event handling."],["By using GoogleMapsPlatformCombine, developers can simplify their code and centralize event-processing logic for Google Maps and Places SDKs within their applications."],["A practical example demonstrates subscribing to camera change events on a `GMSMapView` using the `GMSMapViewPublisher` and Combine's `sink` operator."]]],["The content introduces the GoogleMapsPlatformCombine library, which utilizes Apple's Combine framework for handling asynchronous events within the Google Maps and Places SDKs for iOS. It leverages `Publishers` to manage events. A key action is demonstrated through the `GMSMapViewPublisher` class, allowing users to subscribe to map events. An example illustrates how to monitor camera position changes using the `didChangeCameraPosition` publisher. Installation instructions and further details are available on the library's GitHub page.\n"]]