Class DefaultCoreBackend

Definition

Namespace:
Tizen.Applications.CoreBackend
Assembly:
Tizen.Applications.Common.dll
API Level:
3

An abstract class to provide default event handlers for apps.

C#
Copy
public abstract class DefaultCoreBackend : object, ICoreBackend, IDisposable
Inheritance
DefaultCoreBackend
Implements
IDisposable

Constructors

View Source

DefaultCoreBackend()

Constructor of DefaultCoreBackend class.

Declaration
C#
Copy
public DefaultCoreBackend()
API Level: 3

Fields

View Source

Handlers

Data structure for event handlers.

Declaration
C#
Copy
protected IDictionary<EventType, object> Handlers
Field Value
Type Description
IDictionary<EventType, Object>
API Level: 3
View Source

LogTag

Tag string for this class.

Declaration
C#
Copy
protected static readonly string LogTag
Field Value
Type Description
String
API Level: 3

Methods

View Source

AddEventHandler(EventType, Action)

Adds an event handler.

Declaration
C#
Copy
public virtual void AddEventHandler(EventType evType, Action handler)
Parameters
Type Name Description
EventType evType

The type of event.

Action handler

The handler method without arguments.

API Level: 3
View Source

AddEventHandler<TEventArgs>(EventType, Action<TEventArgs>)

Adds an event handler.

Declaration
C#
Copy
public virtual void AddEventHandler<TEventArgs>(EventType evType, Action<TEventArgs> handler) where TEventArgs : EventArgs
Parameters
Type Name Description
EventType evType

The type of event.

Action<TEventArgs> handler

The handler method with a TEventArgs type argument.

Type Parameters
Name Description
TEventArgs

The EventArgs type used in arguments of the handler method.

API Level: 3
View Source

Dispose()

Releases all resources.

Declaration
C#
Copy
public void Dispose()
API Level: 3
View Source

Dispose(Boolean)

Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.

Declaration
C#
Copy
protected abstract void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

If true, disposes any disposable objects. If false, does not dispose disposable objects.

API Level: 3
View Source

Exit()

Exits the mainloop of the backend.

Declaration
C#
Copy
public abstract void Exit()
API Level: 3
View Source

Finalize()

Finalizer of DefaultCoreBackend class.

Declaration
C#
Copy
protected void Finalize()
View Source

OnDeviceOrientationChangedNative(IntPtr, IntPtr)

Default implementation for the device orientation changed event.

Declaration
C#
Copy
protected virtual void OnDeviceOrientationChangedNative(IntPtr infoHandle, IntPtr data)
Parameters
Type Name Description
IntPtr infoHandle
IntPtr data
API Level: 3
View Source

OnLocaleChangedNative(IntPtr, IntPtr)

Default implementation for the system language changed event.

Declaration
C#
Copy
protected virtual void OnLocaleChangedNative(IntPtr infoHandle, IntPtr data)
Parameters
Type Name Description
IntPtr infoHandle
IntPtr data
API Level: 3
View Source

OnLowBatteryNative(IntPtr, IntPtr)

Default implementation for the low battery event.

Declaration
C#
Copy
protected virtual void OnLowBatteryNative(IntPtr infoHandle, IntPtr data)
Parameters
Type Name Description
IntPtr infoHandle
IntPtr data
API Level: 3
View Source

OnLowMemoryNative(IntPtr, IntPtr)

Default implementation for the low memory event.

Declaration
C#
Copy
protected virtual void OnLowMemoryNative(IntPtr infoHandle, IntPtr data)
Parameters
Type Name Description
IntPtr infoHandle
IntPtr data
API Level: 3
View Source

OnRegionChangedNative(IntPtr, IntPtr)

Default implementation for the region format changed event.

Declaration
C#
Copy
protected virtual void OnRegionChangedNative(IntPtr infoHandle, IntPtr data)
Parameters
Type Name Description
IntPtr infoHandle
IntPtr data
API Level: 3
View Source

OnSuspendedStateChangedNative(IntPtr, IntPtr)

Default implementation for the device orientation changed event.

Declaration
C#
Copy
protected virtual void OnSuspendedStateChangedNative(IntPtr infoHandle, IntPtr data)
Parameters
Type Name Description
IntPtr infoHandle
IntPtr data
API Level: 3
View Source

OnTimeZoneChangedNative(IntPtr, IntPtr)

Default implementation for the time zone changed event.

Declaration
C#
Copy
protected virtual void OnTimeZoneChangedNative(IntPtr infoHandle, IntPtr data)
Parameters
Type Name Description
IntPtr infoHandle
IntPtr data
API Level: 3
View Source

Run(String[])

Runs the mainloop of the backend.

Declaration
C#
Copy
public virtual void Run(string[] args)
Parameters
Type Name Description
String[] args
API Level: 3

Implements

IDisposable

Extension Methods