Nearby Connections
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בעזרת Connections Connect API מאפשרים לאפליקציות לגלות נתונים, להתחבר אליהם ולקבל מהם מידע או להחליף אותם בזמן אמת באמצעות מכשירים קרובים, בלי קשר לקישוריות של הרשת. הוא משתמש ב-Bluetooth, ב-Wi-Fi ובטכנולוגיות אחרות, והוא מיועד להסתיר את המורכבות של הטכנולוגיות האלה כדי לאפשר לאפליקציה להתמקד בגילוי מכשירים בקרבת מקום ובאינטראקציה איתם.
כדאי לבחור את ה-API של החיבורים בקרבת מקום לאפליקציה כאשר:
אתם רוצים לגלות מכשירים קרובים מבלי לדרוש קישוריות לאינטרנט, ולצבור עלות הלוך ושוב ברשת בכל פעולה.
אתם רוצים לשדר תוכן או לשדר מטענים ייעודיים או קבצים אקראיים בין מכשירים בסביבה.
אתם רוצים להשתמש בטכנולוגיות הכי עדכניות מקצה לקצה, כמו Wi-Fi Aware, כשזה אפשרי.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-13 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-13 (שעון UTC)."],[[["\u003cp\u003eThe Nearby Connections API enables real-time data exchange between devices, regardless of internet access, using Bluetooth, Wi-Fi, and other technologies.\u003c/p\u003e\n"],["\u003cp\u003eThis API simplifies device discovery and interaction by abstracting away underlying technology complexities.\u003c/p\u003e\n"],["\u003cp\u003eChoose this API for scenarios requiring offline device discovery, content streaming, or leveraging peer-to-peer technologies like Wi-Fi Aware.\u003c/p\u003e\n"]]],[],null,["# Nearby Connections\n\nThe [Nearby Connections API](/nearby/connections/overview) allows apps to\ndiscover, connect to, and exchange data with nearby devices in real-time,\nregardless of network connectivity. It uses Bluetooth, Wi-Fi, and other\ntechnologies, and is designed to hide the complexity of these technologies\nso your app can focus on discovering and interacting with nearby devices.\n\nYou should choose the Nearby Connections API for your app when:\n\n- You want to discover nearby devices without requiring Internet connectivity\n and incurring the cost of a network round-trip on each operation.\n\n- You want to stream content or transmit arbitrary payloads or files between\n nearby devices.\n\n- You want to use the latest peer-to-peer technologies such as\n [Wi-Fi Aware](//developer.android.com/guide/topics/connectivity/wifi-aware)\n when available."]]