Options
All
  • Public
  • Public/Protected
  • All
Menu

Class App

The App class provides methods to get and set application-related functionalities

example
import Xjs from '@xjsframework/xjs';
import App from '@xjsframework/xjs/core/app';
import AppProps from '@xjsframework/xjs/props/app-props';

const xjs = new Xjs();
const app = new App(xjs);

app.getProperty(AppProps.sceneThumbnail, { scene: 1, width: 1280, height: 720 });

Hierarchy

  • App

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private internal

internal: Internal

Methods

getProperty

  • getProperty(prop: IPropertyType, param?: IKeyValuePair): Promise<unknown>
  • Get application property

    Parameters

    • prop: IPropertyType

      Application Property object

    • Optional param: IKeyValuePair

      Params that would be used to modify the property key

    Returns Promise<unknown>

setProperty

  • Set application property

    Parameters

    • prop: IPropertyType

      Application Property object

    • param: PropertyParam

      Params that would be passed to the underlying core function

    Returns Promise<string>

Generated using TypeDoc