Skip to content

How to use WITs as APIs

Hyojin Kim edited this page Oct 5, 2020 · 16 revisions

APIs

setWitsconfigInfo

setWitsconfigInfo is for setting WITs environment, It should be called before start function or watch function.

    void setWitsconfigInfo(WitsInfoData data)
    dictionary WitsInfoData {
        DOMString width;
        DOMString deviceIp;
        DOMString hostIp;
        DOMString baseAppPath;
        boolean IsDebugMode;
        DOMString profilePath;
    }

start

start is a sequence for building and installing your application, connecting PC and Target TV, pushing files, supporting live-reload feature.

watch

watch is a sequence for connecting PC and Target TV, pushing files, supporting live-reload feature. (Except for re-building and re-installing your application.)

disconnect

disconnect is for disconnecting communications between PC and Target TV.

Clone this wiki locally