安卓和 iOS 跨平台文件互传明年走进 App,约 20 行代码搭起分享桥梁
IT之家 11 月 3 日消息,科技媒体 9to5Google 昨日(11 月 2 日)发布博文,报道称在 2026 年 安卓 开发者峰会上, 谷歌宣布将于 2027 年上半年推出快速分享(Quick Share)SDK,让安卓与苹果 iOS 跨平台传文件更方便。 IT之家援引博文介绍,在现有安卓和 iOS 系统跨平台分享体验中,用户需要先打开系统分享菜单,再进入全屏快速分享(Quick Share)界面。而接入 SDK 后,第三方应用可直接调用分享功能,并通过底部弹出面板展示待发送文件的预览,减少界面切换。 按照谷歌公布的信息,该 SDK 支持设备间端到端加密传输,可自动处理热点创建,并在支持的设备上使用 Wi-Fi Direct,以实现低延迟、高速传输。照片和视频无需压缩,即使没有蜂窝网络,也能进行离线分享,适用于网络受限等场景。 对开发者而言,这意味着可以在应用内提供文件传输能力,集成需要大约 20 行代码:初始化 QuickShareClient、附加文件、启动底部工作表 UI(带有预览和敏感内容切换),以及用于传输事件的 Kotlin Flow。谷歌还明确将为 iPhone 应用提供 iOS 版 SDK,让快速分享不再只是安卓应用可接入的能力。 该媒体指出,此次公布的是面向开发者的接入计划,并不意味着所有安卓和 iPhone 应用已经支持该功能。普通用户何时能在具体应用中使用,仍取决于 SDK 推出及后续应用适配。
相关推荐
-
Best Kindle and E-Reader Black Friday Deals (2026): Up to $180 Off
-
Hendrix Lapierre scores in OT as Penguins come back to beat Maple Leafs
-
Republicans rethink tariffs, giving Democrats an opening to challenge Trump
-
Mike Love, founding member of Beach Boys, dies at 85
-
WATCH: Elderly DoorDasher goes viral
-
Macy’s 100th Thanksgiving Day parade gets a do-over after storm forced postponement
- 最近发表
-
- Motley Fool Promo Code: $200 Off on Stock Advisor November 2026
- A modern Ontario home in a vibrant natural setting
- News To Me – Hot for the holidays
- Your lookahead horoscope: November 29, 2026
- Budget airline Norse Atlantic files for bankruptcy in Europe after failing to secure funding
- Super El Niño – A Survival Guide
- Trump’s role in reinstalling Jensen Huang signals AI regulation in U.S. is a non-starter
- Hendrix Lapierre scores in OT as Penguins come back to beat Maple Leafs
- Iran reportedly used Starlink in military operations against U.S.
- Why does my EV need a 12-volt battery?
- 随机阅读
-
- Pakistan to send troops to Saudi Arabia to bolster defenses following Houthi attacks
- Many of Canada’s vaping, nicotine pouch products may be illegal, study suggests
- Hendrix Lapierre scores in OT as Penguins come back to beat Maple Leafs
- Hendrix Lapierre scores in OT as Penguins come back to beat Maple Leafs
- Snowflake 实时分析:流式摄取、实时更新与低延迟查询 | 技术趋势
- The trade crisis can be an opportunity if businesses lean on francophones to help them grow
- Doctors Without Borders condemns Israeli drone strike that killed 2 clinic staff in Gaza
- Montreal Carabins top Western Mustangs to repeat as Vanier Cup champions
- WATCH: Elderly DoorDasher goes viral
- The AI meltdown, and the end of the good times
- Nvidia reinstates Jensen Huang, Lululemon’s Chip Wilson sparks controversy and courting investors for Freedom Mobile: Must-read business and investing stories for the week of Nov. 28
- Your lookahead horoscope: November 29, 2026
- X finally gets parental controls after 20 years
- Many of Canada’s vaping, nicotine pouch products may be illegal, study suggests
- The trade crisis can be an opportunity if businesses lean on francophones to help them grow
- We asked her about the porch goose
- 1Password said hackers broke into its internal systems, but customer passwords are safe
- The AI meltdown, and the end of the good times
- Why does my EV need a 12-volt battery?
- John Tory says he doesn’t plan to return to politics – ever
- 搜索
-