The MDRC api

interface IDressingRoomApi {
    hide: (() => void);
    on: ((type: MDRC_EVENTS, cb: (() => void)) => void);
    show: ((hostAdaptor?: HostAdaptor, sharedState?: IShareState) => void);
}

Properties

Properties

hide: (() => void)

This methods hides the MDRC instance

Type declaration

    • (): void
    • Returns void

on: ((type: MDRC_EVENTS, cb: (() => void)) => void)

The host application can listen on certain MDRC events.

Type declaration

    • (type, cb): void
    • Parameters

      • type: MDRC_EVENTS

        The MDRC event to listen for

      • cb: (() => void)

        The callback that should be executed

          • (): void
          • Returns void

      Returns void

show: ((hostAdaptor?: HostAdaptor, sharedState?: IShareState) => void)

This methods opens the MDRC

Type declaration