A simple loading HUD that uses native UI elements to present a modal loading indicator.
- Titanium SDK 7.1.0+
- ES6 enabled (
<transpile>true</transpile
)
- a) Simply put the
loader.js
intoapp/lib
(Alloy) orResources
(Classic). - b) Install via npm:
npm i titanium-loading-hud
import Loader from 'loader';
const loader = new Loader({
view: $.window,
title: 'Loading …',
});
loader.show();
setTimeout(() => {
loader.hide();
}, 2000);
MIT
Hans Knöchel