-
- BlackBerry Dynamics
- Runtime library for iOS applications
- 12.0.1.79
Go to the documentation of this file.
13 # define GD_C_API __attribute__((visibility("default")))
128 GD_C_API
void checkUrl(
const std::string &url,
const std::weak_ptr<SafeUrlCallback> callback,
129 const long long reference = 0,
const bool suppressUserPrompt =
false)
const;
Definition: GDKerberosAuthHandler.h:16
@ GENERAL
Another error was encountered whilst checking that the URL was safe.
UrlCheckError error
Definition: GDSafeUrl.h:96
@ NETWORK
There was a networking error whilst trying to check that the URL was safe.
UrlCheckResult result
Definition: GDSafeUrl.h:95
@ NONE
No error has been detected.
UrlCheckResult
Result codes from testing if a URL is safe.
Definition: GDSafeUrl.h:53
long long reference
Definition: GDSafeUrl.h:97
@ UNSAFE
The URL is flagged as being unsafe or malicious and should not be called.
UrlCheckError
Error codes from testing if a URL is safe.
Definition: GDSafeUrl.h:70
Check that URLs are safe using BlackBerry Protect (C++).
Definition: GDSafeUrl.h:20
virtual ~SafeUrlCallback()=default
virtual void completed(const SafeUrlResultItem &resultItem)=0
Item within the SafeURL callback.
Definition: GDSafeUrl.h:88
Callback object returned from SafeURL.
Definition: GDSafeUrl.h:106
bool isSafeBrowsingEnabled()
Determine if Safe Browsing is enabled.
SafeUrlResultItem(const UrlCheckResult &result, const UrlCheckError &error, const long long reference)
@ SAFE
The URL is deemed to be safe.
@ UNKNOWN
The result could not be determined.
void checkUrl(const std::string &url, const std::weak_ptr< SafeUrlCallback > callback, const long long reference=0, const bool suppressUserPrompt=false) const
This function checks whether or not the url is safe to make an http request.