Skip to content

Commit 3045940

Browse files
committed
add protocol for allowing accepting deep link URLs
1 parent 2a6e9da commit 3045940

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cocos/platform/CCApplicationProtocol.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ class CC_DLL ApplicationProtocol
9797
*/
9898
virtual void applicationWillEnterForeground() = 0;
9999

100+
101+
/**
102+
* @brief This function will be called when the application enters foreground.
103+
* @js NA
104+
* @lua NA
105+
*/
106+
//virtual void applicationWasOpenedWithUrl(std::string url);
107+
virtual void applicationWasOpenedWithUrl(std::string scheme, std::string host, std::string path) = 0;
108+
100109
/**
101110
* @brief Callback by Director for limit FPS.
102111
* @param interval The time, expressed in seconds, between current frame and next.

0 commit comments

Comments
 (0)