API

Tizen .NET provides a rich set of interfaces allowing you to build compelling TV and mobile applications which achieve native performance. The programming environment includes the following:

  • .NET Standard API, which implements the .NET Base Class library, allows you to use the well known C# language base class libraries and features, such as collections, threading, file I/O, and LINQ.
  • Xamarin.Forms, which allows you to efficiently build a user interface from standard components in C# or XAML.
  • Tizen.Xamarin.Forms.Extension, which allows you to enhance your application by adding components from the rich set of native Tizen UI components. This is at the alpha status and will be refined based on developer feedback.
  • Tizen platform-specific API, which allows you to access platform-specific features not covered by the generic .NET and Xamarin.Forms features,  such as system information and status, battery status, sensor date, and account and connectivity services.
    For the full specification, see the Tizen Platform-Specific API Reference.

.NET Standard API

One of the major components of .NET Core is the .NET Standard. The .NET APIs provided by Tizen .NET follow the .NET Standard 1.6. The column titled "1.6" in the official list of supported CoreFX APIs lists all the available .NET APIs.

Xamarin.Forms

Xamarin.Forms provides cross-platform APIs, which allow you to create user interfaces that can be shared across platforms. The Tizen.NET Visual Studio extension enables Tizen support for Xamarin.Forms.

You can efficiently build your Tizen .NET application UI and its supporting logic using the Xamarin.Forms APIs. Extended details for these APIs are available on the Xamarin Web site.

The Tizen.NET preview  2 contains a few limitations on the Xamarin.Forms APIs; these limitations are to be eliminated in future releases. The following classes are not supported:

  • AppLinkEntry
  • OpenGLView
  • WebView

A list of limitations is available at Current Xamarin.Forms limitations.

Tizen.Xamarin.Forms.Extension

Visual Studio Tools for Tizen supports Tizen.Xamarin.Forms.Extension APIs. These APIs allow you to enhance your application by adding components from the rich set of native Tizen UI components.

You can efficiently add these components to enhnace the UI of your Tizen.NET application. For the full specifications of these APIs, see the Tizen Plaform-Specific API documentation. In order to use the TIzen.Xamarin.Forms.Extension APIs, you should install the Tizen.Xamarin.Forms.Extension package through the Manage NuGet Packages for Solution dialog on Visual Studio.

Presently, the following classes are available:

  • Background
  • DoubleLabelCell
  • MultilineCell
  • Type1Cell
  • Type2Cell
  • RadioButton

Tizen Platform-Specific API

The Tizen Platform-Specific API allows applications to call into platform-specific functionality from the shared code. This functionality enables Xamarin.Forms applications to do things a native application can do, without causing the portable part of the application to become littered with operating system-specific details.

The following table lists the supported Tizen platform-specific API namespaces. For the full specification, see the Tizen Platform-Specific API.

API group
Description
Account

Provides CRUD (Create, Read, Update, Delete) account management functionality and the OAuth Core RFC 6749 protocol.

Applications Provides the Tizen application framework, including application state change events, inter-application messaging, and notification services.
Common Provides predefined color names.
Content Provides content management services, such as file and media downloads, storing and indexing audio and video content, and associating content types with helper applications.
Location Manages geographical location services and geofencing.
Messaging Provides functions to receive push notifications.
Multimedia Interacts with media services, including audio playback, recording and device policy, cameras, and video players.
Network Provides APIs to control connectivity devices, such as Bluetooth, NFC, Wi-Fi, and an IoT interface service.
Security Provides access to secure storage for passwords, keys, certificates, and other sensitive data.
Sensor Provides sensor types and sensor information.
System Provides device-specific services, including status, system information and settings, control of haptic devices and sensor control and access.
Telephony Provides call, modem, network, and SIM information.
Uix Provides functions to recognize the speech and to synthesize voice from text and playing synthesized sound data.
Log Provides methods to print log messages to Tizen logging system.
Tracer Provides functions for writing trace message to the system trace buffer.