if (!(Webvium === undefined)) {
// Webvium Browser
} else {
// Other browser, or the interface is disabled
}
Show a normal toast message to the user.
Arguments
message
- The message you want to show.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.showToast("Hello World");
}
Show a normal toast message to the user with custom delay.
Arguments
message
- The message you want to show.delay
- Either 0 or 1. Default is 0.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.showToast("Hello World", 0);
}
Show a red toast message to the user.
Arguments
message
- The message you want to show.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.showToastError("An Error Occured.");
}
Show a red toast message to the user with custom delay.
Arguments
message
- The message you want to show.delay
- Either 0 or 1. Default is 0.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.showToastError("An Error Occured", 0);
}
Show a blue toast message to the user.
Arguments
message
- The message you want to show.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.showToastSuccess("Done.");
}
Show a blue toast message to the user with custom delay.
Arguments
message
- The message you want to show.delay
- Either 0 or 1. Default is 0.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.showToastSuccesss("Done.", 0);
}
Copy a message directly to user clipboard.
Arguments
message
- The message you want to copy.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.copyToClipboard("Hello World");
}
Vibrate user device.
Arguments
long
- The time the device will vibrate in miliseconds.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.vibrate(3000);
}
Get the user webvium current version.
Example
let webvium = Webvium;
if (!(webvium === undefined)) {
console.log(webvium.currentVersion());
}
Send user a notification.
Arguments
title
- The title of your notification must be concise and short.description
- The description or body of your notification.link
- Action that the user could do. Must start at https://
or http://
Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.showNotification("Hello World", "Lorem ipsum dolor ier adao adjf", "https://github.com/webvium");
}
Text To Speech API
Arguments
message
- The message you want the user to hear.Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.textToSpeech("Hello World");
}
Print the current web page.
Example
let webvium = Webvium;
if (!(webvium === undefined)) {
webvium.print();
}
if (!(WebviumHashHelper === undefined)) {
// Webvium Browser
} else {
// Other browser, or the interface is disabled
}
Converts the text to the popular MD5
Arguments
text
- The plain text you want to encryptboolean
- If the encoder gonna use random bytes to encode it.Example
let webviumHashHelper = WebviumHashHelper;
if (!(webviumHashHelper === undefined)) {
webviumHashHelper.encodeMD5("Hello World", false);
}
Converts the text to the popular SHA
Arguments
type
- Its either of SHA-1, SHA-224, SHA-256 and SHA-384.text
- The plain text you want to encryptboolean
- If the encoder gonna use random bytes to encode it.Example
let webviumHashHelper = WebviumHashHelper;
if (!(webviumHashHelper === undefined)) {
webviumHashHelper.encodeSHA("SHA-1", "Hello World", false);
}
Converts the text to the XOR
Arguments
text
- The plain text you want to encryptkey
- The key that encoder needs to encode and decode the XORExample
let webviumHashHelper = WebviumhashHelper;
if (!(webviumHashHelper === undefined)) {
webviumHashHelper.encodeXOR("Hello World", "E");
}
Converts the text to Caesar Cipher
Arguments
text
- The plain text you want to encryptpadding
- The padding that encoder needs to encode and decode the CaesarExample
let webviumHashHelper = WebviumhashHelper;
if (!(webviumHashHelper === undefined)) {
webviumHashHelper.encodeCaesar("Hello World", 13);
}
Converts the text to AES-256 encryption algorithm
Arguments
text
- The plain text you want to encryptkey
- The key that the encoder will use to encrypt the text.saltPhrase
- Random text phrase that the encoder will use to hardened the encryptionExample
let webviumHashHelper = WebviumhashHelper;
if (!(webviumHashHelper === undefined)) {
webviumHashHelper.encodeAES256("Hello World", "nmnm", "qwqe");
}
Decodes the encrypted text using AES-256 encryption algorithm
Arguments
text
- The plain text you want to encryptkey
- The key that the encoder will use to encrypt the text.saltPhrase
- Random text phrase that the encoder will use to hardened the encryptionExample
let webviumHashHelper = WebviumhashHelper;
if (!(webviumHashHelper === undefined)) {
webviumHashHelper.decodeAES256("Hello World", "nmnm", "qwqe");
}
Decodes the encrypted text using AES-256 encryption algorithm
Returns
byte[]
- A secure random byteExample
let webviumHashHelper = WebviumhashHelper;
if (!(webviumHashHelper === undefined)) {
console.log(webviumHashHelper.getRandomBytes());
}
if (!(WebviumSearchHelper === undefined)) {
// Webvium Browser
} else {
// Other browser, or the interface is disabled
}
// data coming soon
if (!(WebviumSearchSuggestion === undefined)) {
// Webvium Browser
} else {
// Other browser, or the interface is disabled
}
// data coming soon
if (!(WebviumThemeHelper === undefined)) {
// Webvium Browser
} else {
// Other browser, or the interface is disabled
}
// data coming soon