API用於插件設備的工作,像這樣的應用程序: square iphone scanner?CocoaTouch,一些來自基金會?用於iPhone上的插頭設備的API
0
A
回答
3
正方形通過耳機插孔工作,因此它不使用外部附件框架。 iPhone上的外部配件出了名的難度很大,這就是爲什麼幾乎沒有任何製造商正在創造產品。
http://www.wired.com/gadgetlab/2010/01/wither-the-dongleware
我可以用一根手指計數的第三方設備上我看到過iPhone上的基座連接器進行通信的數量。
3
糟糕。 Square不使用ExternalAccessory,而是通過耳機插孔的某種自定義界面,如@kubi所解釋的。
相關的接口看起來是這樣的:
__attribute__((visibility("hidden")))
@interface SKSquareInterface : NSObject {
@private
? delegate;
? queue;
? state;
}
@property(assign) ? XXEncryptedProperty_6b644;
@property(assign) ? XXEncryptedProperty_6a1bc;
@property(assign) ? XXEncryptedProperty_77a22;
@property(assign) ? XXEncryptedProperty_77a39;
@property(assign) ? XXEncryptedProperty_77a60;
@property(assign) ? XXEncryptedProperty_77800;
@property(assign) ? XXEncryptedProperty_7780c;
+(?)sharedInstance;
-(?)init;
-(?)dealloc;
-(?)parseState;
-(?)triggered;
-(?)dcOffset;
-(?)shouldStartWhenCapable;
-(?)setShouldStartWhenCapable:(?)startWhenCapable;
-(?)start;
-(?)stop;
-(?)isAttached;
-(?)_reset;
-(?)_stop;
-(?)_initializeQueues;
-(?)_isAudioQueueRunning;
-(?)_listenForSwipe:(?)swipe numSamps:(?)samps;
-(?)_tryToStartAudioInterface;
-(?)_tryToStopAudioInterface;
-(?)_notifyDelegateDidBeginSwipe;
-(?)_notifyDelegateSwipeFailed;
-(?)_notifyDelegateOfRawData:(?)rawData;
-(?)_notifyDelegateOfRawDataOnMainThread:(?)rawDataOnMainThread;
-(?)_notifyDelegateSwipedPaymentCard:(?)card;
-(?)_notifyDelegateSwipedPaymentCardOnMainThread:(?)thread;
-(?)state;
-(?)delegate;
-(?)setDelegate:(?)delegate;
@end
這表明它直接從AudioQueue解析輸入。
相關問題
- 1. 無頭設備上的JavaFX
- 2. iPhone 4設備上的UIImagePickerController
- 3. iPhone 4設備上的Phonegap
- 4. 用於3G設備的iPhone模擬器
- 5. 用於設備間通信的Android API
- 6. Getusermedia不適用於api的webview設備19設備
- 7. 用於IOS Iphone 3G的JavaScript API用於攝像頭訪問
- 8. 如何使用移動設備(Android設備,iPhone)jQuery的攝像頭?
- 9. 使用bengottlieb/Twitter的OAuth的iPhone,iPhone的設備上運行
- 10. PhoneGap Media API無法覆蓋iPhone設備上錄製的音頻
- 11. NSUserDefaults不適用於iPhone 4.0設備?
- 12. 無法生成用於iPhone設備
- 13. 在iPhone設備上調試
- 14. iPhone上的藍牙設備列表
- 15. iPhone設備上的初始屏幕
- 16. iPhone設備上的Swizzle方法
- 17. 在iPhone設備上的Paypal SDK支持
- 18. 無法在iPhone上的設備「SIGBART」
- 19. iPhone設備上的靜態庫
- 20. 在iPhone設備上的RAR解壓縮
- 21. 用於備份的Quickbooks API
- 22. 的iPad:IBAction爲用於UIButton的iPhone設備上的迴應,而不是在iPad
- 23. 適用於iPhone的Orkut API
- 24. 適用於iphone的FourSquare API
- 25. 在iPhone上設置設備音量
- 26. 在真實設備上訪問iPhone的設置應用程序
- 27. 如何阻止iPhone應用上的所有輸入(用於越獄設備)?
- 28. iPhone:電子郵件API MFMailComposeViewController在設備上崩潰
- 29. 如何發佈僅適用於iPhone設備的應用程序?
- 30. iPhone上的「無法上傳設備上的* .app」錯誤