iOS 3.6.2 Example

 Objective-C

 Swift 2.2

 Swift 3

 OSX

iOS 3.6.1 Example

 Objective-C

 Swift 2.2

 Swift 3

 OSX

iOS 3.6 Example

Simple Transfer

 3.6 Sample Application (Objective-C)

 3.6 Sample Application (Swift)

This example provides a working project that shows a minimal interface for initiating a transfer using the iOS SDK.

iOS 3.5 Examples

simple-queue2With iOS applications you can create any type of application with any look or style that you like, to help you get started integrating Aspera technologies into your iOS application we have created a basic Transfer and Queue example.  These are baritone examples that demonstrate initiating transfers in an iOS application and creating a queue and displaying it in the application.  Due to the multi file nature of iOS applications, we have put these examples in a ZIP file.  You can simply download, extract and open the xcodeproj file to open the project in Xcode.  Remember that you need to import the SDK, for more information on this please see the Getting Started section.

Swift examples are provided below, however, these are experimental.  The instructions for building the Swift examples are basically the same as the Objective-C, however, the .m file should be changed to .swift.

Simple Queue

 Download SimpleQueue (Objective-C)

 Download SimpleQueue (Swift)

 Download SimpleQueue (Xcode 4 and Earlier)

This example provides a working project that shows a minimal queue interface that allows for uploading and downloading from one Aspera Server that is hard coded into the application.  The code in this project implements a queue as a convenient task to demonstrate several aspects of using the Aspera Mobile SDK.  Since Version 3.0.0 the AsperaMobile SDK provides a rich queue UI that can be easily added to any application.

To run this example you need to change the ApplicationSetting.m file and replace the placeholder values for the account configuration with your configurations of the server you are going to use.

Simple Transfer

 Download SimpleTransfer (Objective-C)

 Download SimpleTransfer (Swift)

 Download SimpleTransfer (Xcode 4 and Earlier)

This example provides a working project that shows a minimal interface with two buttons; one that launches an upload to a server that has been hard coded in and a second button that shows the queue.

The AppDelegate.m file initializes the SDK contains the configuration, the ViewController.m file creates and queues the transfer session and the QueueDelegate.m file handles the queue events.  To run this example you need to change the ApplicationSetting.m file and replace the placeholder values for the account configuration with your configurations of the server you are going to use.

Video player

Video

×