Class for accessing deep link urls which launched the app, and for launching other apps using urls.
#include <deeplinking/YiDeepLinkBridge.h>
Public Types | |
| typedef std::function< void(bool, const CYIUrl &)> | OpenUrlCallback |
Public Member Functions | |
| virtual | ~CYIDeepLinkBridge () |
| void | SetFirstLaunchUrl (const CYIUrl &url) |
| const CYIUrl & | GetFirstLaunchUrl () const |
| virtual bool | CanOpenUrl (const CYIUrl &url) const =0 |
| void | OpenUrl (const CYIUrl &url) |
| void | OpenUrl (const CYIUrl &url, OpenUrlCallback callback) |
Public Attributes | |
| CYISignal< const CYIUrl & > | IncomingUrlReceived |
| CYISignal< const CYIUrl & > | OutgoingOpenUrlSucceeded |
| CYISignal< const CYIUrl & > | OutgoingOpenUrlFailed |
Protected Member Functions | |
| virtual void | OpenUrlImpl (const CYIUrl &url, OpenUrlCallback callback)=0 |
| typedef std::function<void(bool, const CYIUrl &)> CYIDeepLinkBridge::OpenUrlCallback |
|
inlinevirtual |
|
pure virtual |
Returns true if it is possible to launch another app with the provided deep link url, and false otherwise.
| const CYIUrl& CYIDeepLinkBridge::GetFirstLaunchUrl | ( | ) | const |
Returns the url which first launched the app.
| void CYIDeepLinkBridge::OpenUrl | ( | const CYIUrl & | url | ) |
Attempts to open another app with the provided deep link url.
| void CYIDeepLinkBridge::OpenUrl | ( | const CYIUrl & | url, |
| OpenUrlCallback | callback | ||
| ) |
Attempts to open another app with the provided deep link url.
|
protectedpure virtual |
| void CYIDeepLinkBridge::SetFirstLaunchUrl | ( | const CYIUrl & | url | ) |
Sets the deep link url which first launched the app.
Emitted when the app is either launched, or brought back from the background with a deep link.
Emitted when an attempt to open another app with an outgoing deep link url is unsuccessful.
Emitted when an attempt to open another app with an outgoing deep link url is successful.