![]() You use the camera API to embed the iPhone’s built-in camera in your app. If you want to capture photos or video from the iPhone’s camera, you don’t have to write your own camera interface. You use the WKWebView API to embed a WebKit (Safari) browser object in your application. If you want to embed a web browser to show one or more web pages, for example, you don’t have to program your own web browser from scratch just for your application. Apple’s iOS operating system provides a large number of APIs-as every other operating system does-to make this easier on you. Let’s say you want to develop an app for an iPhone. APIs can control access to hardware and software resources. ![]() This helps reduce the amount of code developers need to create, and also helps create more consistency across apps for the same platform. APIs allow developers to save time by taking advantage of a platform’s implementation to do the nitty-gritty work. This isn’t a perfect metaphor, as developers may have to provide their own data to the API to get the results, so perhaps it’s more like a fancy restaurant where you can provide some of your own ingredients the kitchen will work with.īut it’s broadly accurate. They just need to know that it’s available for use in their app. ![]() The developer doesn’t necessarily need to know how, for example, an operating system builds and presents a “Save As” dialog box. ![]() Similarly, an API lists a bunch of operations that developers can use, along with a description of what they do. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |