Device







기본샘플


        var currentDeviceType = Device.current.type  // not string

        if (currentDeviceType === DeviceType.iPhone){

            var newRow = rootItem.addChild(null, item => { item.topic = "Device iPhone"})

        } else if (currentDeviceType === DeviceType.iPad){

            var newRow = rootItem.addChild(null, item => { item.topic = "Device iPad"})

        } else if (currentDeviceType === DeviceType.mac){

            var newRow = rootItem.addChild(null, item => { item.topic = "Device Mac"})

        }