This commit is contained in:
LubuWest 2017-11-08 21:15:07 +01:00
commit fb560b54b1
115 changed files with 5537 additions and 0 deletions

View file

@ -0,0 +1,25 @@
import QtQuick 2.0
import AndroidNative 1.0
Item {
/// The message that will be displayed when show() is called
property string text: ''
/// If set to true, the toast duration will be long
property bool longDuration: false
readonly property string m_TOAST_MESSAGE: "androidnative.Toast.showToast"
/// Displays the Toast with the current set text and duration
function show() {
SystemDispatcher.dispatch(m_TOAST_MESSAGE, {
text: text,
longLength: longDuration
});
}
Component.onCompleted: {
SystemDispatcher.loadClass("androidnative.Toast");
}
}