Creating Extensions in iOS Jesse Dietrichson |

Post on 18-Jan-2018

219 views 0 download

description

 An area in the system that supports extensions is called an extension point. Extension Points TodaySharePhoto Editing Custom Keyboard Action

Transcript of Creating Extensions in iOS Jesse Dietrichson |

//

Creating Extensions in iOS

Jesse Dietrichson | Jesse.Dietrichson@Xamarin.com

Allows you to extend the functionality of your application to other applications or the system through an extension point.

What is an Extension?Share

Available in iOS 8.0+

An area in the system that supports extensions is called an extension point.

Extension Points

Today Share Photo Editing Custom Keyboard

Action

An area in the system that supports extensions is called an extension point.

Extension Points

Today Share Photo Editing Custom Keyboard

Action

A widget that appears on the Today view of the Notification Center.

An area in the system that supports extensions is called an extension point.

Extension Points

Today Share Photo Editing Custom Keyboard

Action

Allows content to be shared through your application.

An area in the system that supports extensions is called an extension point.

Extension Points

Today Share Photo Editing Custom Keyboard

Action

Allows photos and videos to be edited in the Photos app.

An area in the system that supports extensions is called an extension point.

Extension Points

Today Share Photo Editing Custom Keyboard

Action

Replace the iOS system keyboard with a custom keyboard.

An area in the system that supports extensions is called an extension point.

Extension Points

Today Share Photo Editing Custom Keyboard

Action

Manipulate or view content. Ex) translate a web page.

Creating an extension will result in creating two projects.

Creating an Extension

Container Project Extension Project

Creating an extension will result in creating two projects.

Creating an Extension

Container Project Extension ProjectReferences

Creating an extension will result in creating two projects.

Creating an Extension

Container Project Extension ProjectReferences

Automatic with new wizard in

Xamarin 4

Extensions are loaded, executed, and terminated.

Extension Lifecycle

Extensions are loaded, executed, and terminated.

Extension Lifecycle

Suspended State

Extensions can communicate with the host application through the ExtensionContext property.

Extension Communication

Extensions can communicate with the host application through the ExtensionContext property.

Extension Communication

The application starting the extension.

Extensions can communicate with the host application through the ExtensionContext property.

Extension Communication

Communication with container app

Extensions can communicate with the host application through the ExtensionContext property.

Extension Communication

Communication with container app

The application shipped with the extension.

Heath Kit and EventKit UI are not available.

Extension Limitations

Can’t use extended background modes. Can’t access device’s camera or microphone. Can’t receive Air Drop data. UIActionSheet and UIAlertView are not available.

Heath Kit and EventKit UI are not available.

Extension Limitations

Can’t use extended background modes. Can’t access device’s camera or microphone. Can’t receive Air Drop data. UIActionSheet and UIAlertView are not available.

Heath Kit and EventKit UI are not available.

Extension Limitations

Can’t use extended background modes. Can’t access device’s camera or microphone. Can’t receive Air Drop data. UIActionSheet and UIAlertView are not available.

Heath Kit and EventKit UI are not available.

Extension Limitations

Can’t use extended background modes. Can’t access device’s camera or microphone. Can’t receive Air Drop data. UIActionSheet and UIAlertView are not available.

Heath Kit and EventKit UI are not available.

Extension Limitations

Can’t use extended background modes. Can’t access device’s camera or microphone. Can’t receive Air Drop data. UIActionSheet and UIAlertView are not available.

Demonstration

Thank You!Please complete the class survey in your profile: university.xamarin.com/profile

//

Questions?