- openNativeShareDialog ⇒
Promise.<string>
Open a share dialog on native devices
- deviceCanDownload() ⇒
Promise.<boolean>
Check if device is able to perform a download.
- isIosDevice() ⇒
Promise.<boolean>
Check if device is using ios.
- isAndroidDevice() ⇒
Promise.<boolean>
Check if device is using android.
- getAppVersion() ⇒
Promise.<string>
Get the version of the Staffbase App.
- isNativeApp() ⇒
Promise.<boolean>
Check if app is native.
- isMobileApp() ⇒
Promise.<boolean>
Check if app is mobile.
- openLink(url) ⇒
Promise.<any>
Open a link through the app.
Where Staffbase decides which browser (External/Internal) should be used.
- openLinkExternal(url) ⇒
Promise.<any>
Open a link explicitly in the external browser.
- openLinkInternal(url) ⇒
Promise.<any>
Open a link explicitly in the internal browser.
- getBranchLanguages() ⇒
Promise.<any>
Get all enabled content languages configured in the app.
- getBranchDefaultLanguage() ⇒
Promise.<any>
Get the default content language configured in the app.
- getContentLanguages() ⇒
Promise.<any>
Get all content languages supported by the app.
- getPreferredContentLocale(content) ⇒
Promise.<string>
Gets the chosen language from a given content object
- getUserContentLocale() ⇒
Promise.<any>
Get the current user's content locale, fallback to branch default locale
Open a share dialog on native devices
Kind: global constant
Param | Type | Description |
---|---|---|
content | object |
the content to share |
Example
openNativeShareDialog({
image: "https://example.com/test.png",
subject: "The string you would like to use as a subject for the share",
text: "This text is shared",
url: "https://example.com"
})
Check if device is able to perform a download.
Check if device is using ios.
Check if device is using android.
Get the version of the Staffbase App.
Check if app is native.
Check if app is mobile.
Open a link through the app.
Where Staffbase decides which browser (External/Internal) should be used.
Kind: global function
Param | Type | Description |
---|---|---|
url | string |
the url to open in the browser |
Open a link explicitly in the external browser.
Kind: global function
Param | Type | Description |
---|---|---|
url | string |
the url to open in the browser |
Open a link explicitly in the internal browser.
Kind: global function
Param | Type | Description |
---|---|---|
url | string |
the url to open in the browser |
Get all enabled content languages configured in the app.
Get the default content language configured in the app.
Get all content languages supported by the app.
Gets the chosen language from a given content object
Kind: global function
Param | Type | Description |
---|---|---|
content | object | array |
the content to choose the locale from |
Example
getPreferredContentLocale(['de_DE', 'en_EN']) // => 'de_DE'
getPreferredContentLocale({'de_DE': {1,'eins'}, 'en_EN': {1: 'one'}}) // => 'de_DE'
Get the current user's content locale, fallback to branch default locale
Kind: global function