45
1 Copyright © 2017 Samsung. All Rights Reserved. Developing Xamarin.Forms Applications for Tizen Joonghyun Cho Samsung Electronics

Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

Embed Size (px)

Citation preview

Page 1: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

1

Copyright © 2017 Samsung. All Rights Reserved.

Developing Xamarin.Forms Applications for Tizen

Joonghyun  Cho  Samsung  Electronics

Page 2: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

2

•  What are the parts of a Xamarin.Forms Tizen Application?

•  Enhancing your Application

•  Sample Application

•  Resources

Agenda

Page 3: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

3

What is Tizen.NET?

An exciting new way to develop Tizen Application!

Components - .NET Core

- Xamarin.Forms as a UI framework

- Tizen Platform-Specific APIs

Page 4: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

4

•  What are the parts of a Xamarin.Forms Tizen Application? –  Xamarin.Forms

–  Extension APIs

–  Tizen Platform-Specific APIs

•  Enhancing your Application

•  Sample Application

•  Resources

Agenda

Page 5: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

5

Xamarin.Forms Pages

Layouts

Image  Reference:  h9ps://www.xamarin.com/forms

Page 6: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

6

Xamarin.Forms

Activity Indicator BoxView Button DatePicker Editor Entry

Image Label ListView Map OpenGLView Picker

ProgressBar SearchBar Slider Stepper TableView TimePicker

WebView EntryCell ImageCell SwitchCell TextCell …

Controls

Page 7: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

7

Xamarin.Forms.Maps

Page 8: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

8

Xamarin.Forms.Maps

Authen@ca@on  Token

HERE  Maps    for  the  Maps  Service  

Page 9: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

9

Xamarin.Forms

•  Compatible with 40+ Xamarin.Forms Official Samples

Page 10: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

10

•  What are the parts of a Xamarin.Forms Tizen application? –  Xamarin.Forms

–  Extension APIs

–  Tizen Platform-Specific APIs

•  Enhancing your Application

•  Sample Application

•  Resources

Agenda

Page 11: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

11 11

1.  Xamarin Forms Platform Specific APIs –  Adding features to exiting Xamarin.Forms controls

2.  Tizen Extension APIs –  Creating new controls from the rich set of native Tizen UI

components

Extension APIs

Page 12: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

12

Extension APIs | Platform Specific APIs

Page 13: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

13

Extension APIs | Platform Specific APIs

Page 14: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

14 14

•  How to use Xamarin.Forms Platform Specific APIs?

Extension APIs | Platform Specific APIs

Page 15: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

15

Extension APIs | Tizen Extension APIs

Background CalendarView ColorSelector ContextPopup

Cell DateTimeView Dialog

DropdownList FloatingButton GridView

LongTapGesture Recognizer

MediaView

RadioButton Toast …

Xamarin.Forms Controls

Xamarin.Forms

Tizen Extension Controls

Page 16: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

16

Extension APIs | Tizen Extension APIs

Page 17: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

17

Extension APIs | Tizen Extension APIs

Page 18: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

18

Extension APIs | Tizen Extension APIs

Page 19: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

19

Extension APIs | Tizen Extension APIs

Page 20: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

20

Extension APIs | Tizen Extension APIs

Page 21: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

21

Extension APIs | Tizen Extension APIs

Page 22: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

22 22

•  How to use Tizen Extension APIs?

Extension APIs | Tizen Extension APIs

Page 23: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

23 23

•  How to use Tizen Extension APIs?

Extension APIs | Tizen Extension APIs

Page 24: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

24

•  What are the parts of a Xamarin.Forms Tizen Application? –  Xamarin.Forms

–  Extension APIs

–  Tizen Platform-Specific APIs

•  Enhancing your Application

•  Sample Application

•  Resources

Agenda

Page 25: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

25 25

API  Groups

Account Applica@ons Common Content

Loca@on Maps Messaging Mul@media

Network NUI Security Sensor

System Telephony Uix Log

Tracer

Tizen Platform-Specific APIs

*API  Reference:  h9ps://[email protected]/dev-­‐guide/csapi/index.html

Page 26: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

26

•  What are the parts of a Xamarin.Forms Tizen application? •  Enhancing your Application

–  Multi-Language

–  SQLite3

•  Sample Application

•  Resources

Agenda

Page 27: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

27

Enhancing Application | Multi-Language

Page 28: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

28

Enhancing Application | Multi-Language

Page 29: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

29

Enhancing Application | SQLite3

Page 30: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

30

•  What are the parts of a Xamarin.Forms Tizen Application?

•  Enhancing your Application

•  Sample Application

•  Resources

Agenda

Page 31: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

31 31

Clock Application | Overview

Page 32: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

32 32

•  Source location: –  https://review.tizen.org/gerrit/#/admin/projects/profile/mobile/apps/dotnet/clock

•  How to build: – Need to build Xamarin.Forms

for using Xamarin Forms Platform Specific APIs

source: https://review.tizen.org/gerrit/#/admin/projects/platform/upstream/xamarin-forms branch: tizen

Clock Application | Overview

Page 33: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

33

•  SetFontWeight

•  SetStyle

Clock Application | Platform Specific API

Page 34: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

34

•  FloatingButton

Clock Application | Tizen Extension APIs

TizenClock.Tizen.cs

TizenClock.cs

Page 35: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

35

•  RadioButton

Clock Application | Tizen Extension APIs

Page 36: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

36

•  Toast

Clock Application | Tizen Extension APIs

Page 37: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

37

•  To set/cancel an alarm –  Tizen.Applications.AlarmManager.CreateAlarm /

Tizen.Applications.Alarm.Cancel –  ‘http://tizen.org/privilege/alarm.set’ in tizen-manifest.xml file

•  To get a list of alarms –  Tizen.Applications.AlarmManager.GetAllSceduledAlarms –  ‘http://tizen.org/privilege/alarm.get’ in tizen-manifest.xml file

•  To launch this clock when an alarm rings –  Tizen.Applications.AppControl.SendLaunchRequest –  ‘http://tizen.org/privilege/appmanager.launch’ in tizen-manifest.xml file

•  To play a sound file –  Tizen.Multimedia.Player.SetSource/PrepareAsync/SetVolume/Start

Clock Application | Tizen Platform Specific APIs

Page 38: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

38

•  To set/cancel an alarm – Tizen.Applications.AlarmManager.CreateAlarm /

Tizen.Applications.Alarm.Cancel

Clock Application | Tizen Platform Specific APIs

Page 39: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

39

•  To get a list of alarms – Tizen.Applications.AlarmManager.GetAllSceduledAlarms

Clock Application | Tizen Platform Specific APIs

Page 40: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

40

•  To launch this clock when an alarm rings – Tizen.Applications.AppControl.SendLaunchRequest

Clock Application | Tizen Platform Specific APIs

Page 41: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

41

•  To play a sound file – Tizen.Multimedia.Player.SetSource/PrepareAsync/SetVolume/Start

Clock Application | Tizen Platform Specific APIs

Page 42: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

42

•  What are the parts of a Xamarin.Forms Tizen application?

•  Enhancing your Application

•  Sample Application

•  Resources

Agenda

Page 43: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

43

Resources

h9ps://[email protected]/development/@zen-­‐.net-­‐preview/introduc@on

h9ps://developer.xamarin.com/

Page 44: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

44

Resources

Source  Code:  h9ps://[email protected]/gerrit/

Forum:  h9ps://[email protected]/forums/@zen-­‐.net/ac@ve

Page 45: Developing Xamarin.Forms Applications for Tizen - AWS · 3 What is Tizen.NET? An exciting new way to develop Tizen Application! Components - .NET Core - Xamarin.Forms as a UI framework

45

Copyright © 2017 Samsung. All Rights Reserved.

Thank You!