The current user context stores information about the device and login state.
The current version of the hpub2 sdk
Storage: Clear all stored keys
Clear all scheduled push messages for the currently logged in reader. If the current user is not logged in, an error will be thrown.
Close the current issue and return back to the Issue Shelf
Storage: Return the string value for the specified key, or null if the key does not exist.
Trigger the native login flow.
Can be used in conjunction with the onInit
method to listen on when the user has completed the login flow successfully.
In case the user is already logged in, this request will be ignored.
Subscribe to Context changes, e.g. after login or push permissions
Open a URL in either the external browser (target: '_blank'
) or a modal window (target: '_top'
)
Storage: Remove the string value for the specified key.
Trigger the native push notification permission flow.
Schedule push messages for the currently logged in reader. If the current user is not logged in, an error will be thrown.
Storage: Set the string value for the specified key.
Trigger the native Share functionality for a given file
(image/pdf), fileName
(optional), url
(optional) & message
(optional).
Application-wide attribution parameters are automatically appended to the query string of the URL.
Trigger the native Share functionality for the current issue. Application-wide attribution parameters are automatically appended to the query string of the URL.
Trigger the native Share functionality for a given url
.
Application-wide attribution parameters are automatically appended to the query string of the URL.
Open, close or toggle the top navigation bar.
The active
parameter specifies whether to force open (true
) or close (false
) the top navigation bar.
Providing an empty object {}
will toggle the top navigation bar opened and closed.
Track a custom event to Firebase Analytics based on name
and parameters
Generated using TypeDoc
The main MagloftApi Interface accessible via
window.MagloftApi