iOS apps

The Live SDK provides an API for the iOS operating system for Apple devices.

The Live SDK iOS API enables your iPad, iPhone, and iPod touch apps running on iOS 4.3 or higher to work with info in Microsoft OneDrive, and other Microsoft account services. Although you can still write code to call the Live SDK Representational State Transfer (REST) API directly, the iOS API now makes your coding tasks easier.

Note

New OneDrive SDKs are available and hosted on GitHub for multiple platforms, including the OneDrive SDK for iOS, C#, and Python. For a complete list, see SDKs for OneDrive integration.

Note

If you're working on a mobile app that runs on Windows Phone, this isn't the topic you need. Go to Windows Runtime apps.

Configuring your app to participate in the Microsoft OneDrive app experience

There is a Microsoft OneDrive app that users can install on an iPhone or iPad device. They can then use this app to upload files to, or view files from, their OneDrive storage location. You can configure your app to participate in the file uploading and viewing experiences in the Microsoft OneDrive app. This can save you coding time and make for a better user experience.

In one scenario, a user can upload a file from your app to his or her OneDrive storage location by using the Microsoft OneDrive app. You don't have to write code in your app to upload the file directly; you can let the Microsoft OneDrive app upload the file instead. Here's how it works. When the user is viewing a file (like a document or a photo) within your app, you can let the user open the file in the Microsoft OneDrive app. Your app can use the UIDocumentInteractionController class to pass the file to the Microsoft OneDrive app, in which the user can then choose where to upload the file. After the Microsoft OneDrive app opens the file, the user taps the Upload command, taps the folder in his or her OneDrive location to upload the file to, and then the Microsoft OneDrive app uploads the file to that folder.

In another scenario, a user can use the Microsoft OneDrive app to view a file from his or her OneDrive storage location in your app. This enables a seamless user experience for viewing files, especially for custom file types that aren't associated with apps that might already be installed on the user's device. Here's how it works. In the Microsoft OneDrive app, the user taps the file to open it from his or her OneDrive location, and then taps the Open in Another App command that's displayed. The Microsoft OneDrive app then displays a list of apps that the user can choose from to view the file. If your app is registered to work with that file's type, your app appears in the list. When the user taps your app in the list, your app then displays that file.

For details about how your apps can participate in these experiences, see About Document Interaction in the iOS Developer Library documentation.

These topics show you how to add user operations in OneDrive to your iOS apps. Get started by downloading the Live SDK for iOS.

Topic

Description

Signing users in (iOS)

Let users sign in to their OneDrive from your iOS apps.

Downloading and uploading files (iOS)

Download or upload user's files on OneDrive, from your iOS apps.

Getting user data (iOS)

Access a user's Microsoft account data from your iOS app, using the Live SDK.

Obtaining user consent (iOS)

Obtain user consent in OneDrive, from your iOS apps.

File and folder properties (iOS)

Let users read their OneDrive file and folder properties from your iOS apps.

Move, copy, create, or delete a file or folder (iOS)

Move, copy, create, or delete a file or folder on OneDrive, from your iOS apps.

Create, update, read, or delete albums (iOS)

How to create, update, read, and delete albums from a user's OneDrive.

Read, create, or delete tags (iOS)

Read, create, or delete tags on OneDrive, from your iOS apps.