top

OpenTKContentAppBase Class

.

'Tizen::TV::Service::Ambient::OpenTKContentAppBase' class Reference

Properties

ELaunchStyle FirstRender

Stop or not after First Rendering

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0


Public Functions

OpenTKContentAppBase(int width, int height, bool isTransparent, string windowTitle, string windowClassName, int nSample)

Constructor with params

Parameters

  • width : Window width
  • height : Window height
  • isTransparent : Window transparent
  • windowTitle : Window title
  • windowClassName : Window class name
  • nSample : EGL MSAA Sample

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


void PlayAudio(string path, bool isLooping)

api for playing audio.

Parameters

  • path : audio file path
  • isLooping : flag loop

Exceptions

  • ArgumentException : Throw Exception when there is no audio file
  • InvalidOperationException : Throw Exception when music can not be played.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


void PlayAudio(string path, bool isLooping)

api for playing audio.

Parameters

  • path : audio file path
  • isLooping : flag loop

Exceptions

  • ArgumentException : Throw Exception when there is no audio file
  • InvalidOperationException : Throw Exception when music can not be played.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


void StopAudio()

api for stoping audio.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


EFontStyle GetFontColor()

Get font color API.

Returns
Returns font color which type is EFontStyle in enum format.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


EFontStyle GetFontColor()

Get font color API.

Returns
Returns font color which type is EFontStyle in enum format.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


Protected Functions

override void OnCreate()

App creation API.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


override void OnTerminate()

App termination API.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


override void OnAppControlReceived(AppControlReceivedEventArgs e)

App control received API. It's called after Create API.

Parameters

  • e : event args

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


void OnHighContrastChanged(bool isHighContrast)

HighContrast changed API. It's called when highcontrast is changed.

Parameters

  • isHighContrast : If true, it's a highcontrast state. If false, it's not a highcontrast state.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


void OnConfigUpdated()

Config Updated API. It is called when application config is updated.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


void OnWindowTransitionEnd()

Window transition end API. It's called when window transition( launch or end animation ) is finished.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0


void OnEvent(object sender, ContentAppEventArgs e)

Event API. It's used in template app base internally like Util.

Parameters

  • sender : Event sender object.
  • e : Template app event arguments. This param includes event type.

Privilege Level
Non-privilege

Privilege
None

Version
4.4.0