Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Use Objective C, Swift and Java api’s in NativeScript for Angular iOS and Android apps

via egghead.io

Overview

NativeScript has the ability to write Objective C, Swift and Java apis directly from JavaScript and TypeScript.
In this course, we will learn how to code directly against these native api’s with NativeScript for Angular. Many libraries are written and published in these languages. With NativeScript you are no longer limited to just JavaScript based libs, but have direct access to these api’s right from JavaScript/TypeScript. Let’s look at how to include these native libraries internally to your project as well as build public plugins to share with the community.
We will cover some considerations with Objective C and Swift based libraries as well as Java/Android libraries. You can think of CocoaPod, Gradle, and Android Arsenal like npm for native libs. iOS libraries can be found via CocoaPods, Android libraries can be found via Gradle or Android Arsenal.
Let’s also cover how to write custom view components based on native libs since there are considerations for both iOS and Android. Lastly we will learn how to best handle cases where a plugin/library only supports 1 platform.

Syllabus

  • Prepare for native iOS and Android api intellisense with NativeScript
  • Use an Objective C library in NativeScript for Angular iOS app
  • Use Objective C Delegates in NativeScript for Angular iOS apps
  • Generate metadata TypeScript declarations for Objective C/Swift libraries on iOS
  • Use an Android library in NativeScript for Angular using Java apis
  • Translate common Java/Android APIs into NativeScript for Angular Android apps
  • Develop a consistent plugin api across your Android and iOS NativeScript app
  • Convert a Swift library to NativeScript for Angular iOS apps
  • Build a custom NativeScript view component for iOS
  • Build a custom NativeScript view component for Android
  • Develop a public NativeScript plugin using the nativescript-plugin-seed
  • Conditionally require a NativeScript plugin when only a single platform is supported

Taught by

Nathan Walker

Reviews

4.9 rating at egghead.io based on 7 ratings

Start your review of Use Objective C, Swift and Java api’s in NativeScript for Angular iOS and Android apps

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.