tutorials
Introducing Xamarin Essentials for Tizen
Sungsu Kim
Engineer
In July 2019, the Xamarin Developer Summit was held in Houston, Texas.
The Xamarin Developer Summit, which is the Xamarin community's biggest event, was filled with lots of exciting news. One of the most important announcements was about Xamarin Essentials for Tizen, available in the Tizen 4.0 release.
What is the Xamarin Essentials project?
The Xamarin Essentials project is a common set of cross-platform APIs, which can replace platform-specific APIs. Xamarin Essentials project
When you create cross-platform mobile applications with Xamarin, most of the code is shared. However, some features require platform-specific APIs. Xamarin Essentials reduces the use of platform-specific APIs and replaces them with shared code. Xamarin Essentials can replace Android, iOS, UWP, and Tizen platform APIs.
Xamarin Essentials APIs
The Xamarin Essentials API set does not replace every platform API, but it does provide many features:
- Accelerometer: Retrieves the devices' acceleration data in three-dimensional space.
- ApplicationInformation: Finds information about the application.
- Barometer: Monitors the device's barometer sensor, which measures pressure.
- Battery: Easily detects battery level, source, and state.
- Browser: Quickly and easily opens a browser to a specific website.
- Clipboard: Quickly and easily places or reads text on the clipboard.
- Compass: Monitors compass for changes.
- Connectivity: Checks connectivity state and detect changes.
- DeviceDisplay: Gets the device’s screen metrics and orientation.
- DeviceInformation: Easily finds information about the device.
- Email: Easily sends email messages.
- Filesystem: Easily saves files to app data.
- Flashlight: A simple way to turn the flashlight on/off.
- Geocoding: Easily geocodes and reverses geocoding.
- Geolocation: Retrieves the device’s GPS location.
- Gyroscope: Retrieves rotation around the device’s three primary axes.
- Launcher: Enables an application to open a URI by the system.
- Magnetometer: Detects device’s orientation relative to Earth’s magnetic field.
- Maps: Enables an application to open the installed map application to a specific location or placemark.
- OrientationSensor: Monitors the device's orientation in three-dimensional space.
- PhoneDialer: Opens the phone dialer.
- Preferences: Quickly and easily adds persistent preferences.
- SecureStorage: Securely stores data.
- Share: Sends text and website URIs to other apps.
- SMS: Easily sends SMS messages.
- TextToSpeech: Vocalizes text on the device.
- Vibrate: Makes the device vibrate.
Xamarin Essentials for Tizen
Xamarin Essentials for Tizen will be included on Xamarin Essentials version 1.3.0. To try using it now, install the prereleased NuGet package.
You can also test the sample application included in the Xamarin Essentials project.
Tizen supports multi-profiles, such as Mobile, Wearables, and TV. Xamarin Essentials for Tizen is also available for multi-profile.
Xamarin Essentials for Tizen has the following limitations:
Mobile Device | Mobile Emulator | Wearable Device | Wearable Emulator | TV Emulator | |
---|---|---|---|---|---|
Support | 21 | 24 | 15 | 18 | 8 |
Limitation | 8 | 3 | 12 | 9 | 19 |
Mobile Device | Mobile Emulator | Wearable Device | Wearable Emulator | TV Emulator | Limitation | |
---|---|---|---|---|---|---|
Accelerometer | o | o | o | o | X | HW limitation |
AppInfo | o | o | o | o | o | |
Barometer | X | o | o | o | X | HW limitation |
Battery | X | X | X | X | X | Platform limitation |
Browser | o | o | X | X | X | Policy limitation |
Clipboard | X | X | X | X | X | Platform limitation |
Compass | X | o | X | o | X | HW limitation |
Connectivity | o | o | o | o | o | |
DeviceDisplay | X | X | X | X | X | Platform limitation |
DeviceInfo | o | o | o | o | o | |
o | o | X | X | X | HW limitation | |
FileSystem | o | o | o | o | o | |
Flashlight | o | o | X | X | X | HW limitation |
Geocoding | o | o | o | o | o | |
Geolocation | o | o | o | o | X | HW limitation |
Gyroscope | X | o | o | o | X | HW limitation |
Launcher | o | o | X | X | X | Policy limitation |
Magnetometer | X | o | X | o | X | HW limitation |
Map | o | o | X | X | X | Policy limitation |
OrientationSensor | X | o | X | o | X | HW limitation |
PhoneDialer | o | o | o | o | X | HW limitation |
Preferences | o | o | o | o | o | |
SecureStorage | o | o | o | o | o | |
Share | o | o | X | X | X | Policy limitation |
SMS | o | o | o | o | X | HW limitation |
TextToSpeech | o | o | o | o | o | |
Vibration | o | o | o | o | X | HW limitation |
Summary
- Xamarin.Essentials for Tizen is available with Xamarin Essentials version 1.3.0.
- Xamarin.Essentials for Tizen works on Tizen 4.0-based devices.
- Not supported for Battery, Clipboard, and DeviceDisplay features on Tizen platform 4.0.
- Depending on the profiles, there are limitations due to hardware and policy differences.
Check out the Xamarin Essentials project here.