iPhone 的蓝牙 API

发布于 2024-10-17 02:34:31 字数 178 浏览 2 评论 0原文

我厌倦了必须在 iPhone 上浏览大量毫无意义的菜单才能启用/禁用蓝牙,并且想为自己制作一个基本上只启用/禁用手机上的蓝牙的应用程序。我有一个 Apple 开发者帐户,因此部署不会有问题(可以进行临时部署)。

我一直在搜索,但找不到任何可以让我执行此操作的 API。有谁知道吗?如果有人为个人使用而构建了该代码,可以开源吗?

I'm tired of having to go through a lot of pointless menus on the iPhone just to enable / disable bluetooth and would like to make myself an app that basically just enables / disables the bluetooth on my phone. I have a developer account with Apple, so deployment wouldn't be a problem (can do ad-hoc deploys).

I've been searching, but couldn't find any APIs that let me do this. Does anyone know of any? Can someone open source the code if they've built this for personal use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热血少△年 2024-10-24 02:34:31

据我所知,这需要使用私有 API。除非您不想重新发明轮子,否则我建议您对手机进行越狱。我已经使用 GreenPois0n 成功完成了此操作。完成后,您可以访问 Cydia - 一个替代 App Store,用于处理 Apple 不批准的所有内容。

从 Cydia 下载 SBSettings。现在,您只需滑动状态栏即可快速启用/禁用蓝牙、3g、飞行模式、wifi 等:

在此处输入图像描述

您应该越狱手机的其他一些提示和原因:

  • 通过将插件“Push”和“Push”邮件下载到 SSBettings,并从 Cydia 购买 SBSchedule,您可以在手机上拥有配置文件。我创建了两套。 “推”和“推”。可以通过按住开/关按钮来选择这些。我还设置了 SBSettings 在 23:00 自动切换为“推送关闭”,在 07:00 自动切换为“推送打开”,以避免在夜间受到推送通知的打扰。
  • 从 Cydia 购买 LockInfo。请在此处查看更多信息和屏幕截图。这为您的锁定屏幕提供了“小部件”支持。
  • 作为一名开发人员,我还购买了“Display Out”,它使您能够使用 iPhone(或 iPad)上的 iPad VGA 适配器将屏幕镜像到投影仪上(史蒂夫·乔布斯模式)。 “显示录制器”是一款屏幕录制器,可让您录制应用程序的说明视频。

To my knowledge, this requires use of private APIs. Unless you wan't to reinvent the wheel, I recommend jailbreaking your phone. I have sucessfully done this using GreenPois0n. When done, you get access to Cydia - an alternative App Store for all things Apple won't approve.

Download SBSettings from Cydia. Now you can just swipe the status bar to quickly enable/disable bluetooth, 3g, airplane mode, wifi and more:

enter image description here

Some other tips and reasons you should jailbreak your phone:

  • By downloading the plugins "Push" and "Push" mail to SBSettings, and by purchasing SBSchedule from Cydia, you can have profiles on your phone. I created two sets. "Push on" and "Push off". These can be selected by holding the on/off button. I have also set SBSettings to automatically switch to "Push off" at 23:00 and "Push on" at 07:00 to avoid getting disturbed by push notifications at night.
  • Purchase LockInfo from Cydia. See more information and screenshots here. This gives you "widget" support on your lock screen.
  • As a developer, I have also purchased "Display Out" which enables you to use the iPads VGA adapter on your iPhone (or iPad) to mirror the screens onto a projector (Steve Jobs mode). "Display Recorder" is a screen recorder enabling you to record instruction videos for your apps.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文