firebase:: dynamic_links
Firebase Dynamic Links API.
Summary
Firebase Dynamic Links is a cross-platform solution for generating and receiving links, whether or not the app is already installed.
Deprecated. Dynamic Links is now deprecated. Please see the support documentation at https://firebase.google.com/support/dynamic-links-faq for more information.
Enumerations |
|
---|---|
ErrorCode
|
enum Error code used by Futures returned by this API. |
LinkMatchStrength{
|
enum Enum describing the strength of a dynamic links match. |
PathLength{
|
enum The desired path length for shortened Dynamic Link URLs. |
Functions |
|
---|---|
Fetch()
|
void
Fetch any pending dynamic links. |
GetLongLink(const DynamicLinkComponents & components)
|
Creates a long Dynamic Link from the given parameters.
|
GetShortLink(const DynamicLinkComponents & components)
|
Creates a shortened Dynamic Link from the given parameters.
|
GetShortLink(const DynamicLinkComponents & components, const DynamicLinkOptions & options)
|
Creates a shortened Dynamic Link from the given parameters.
|
GetShortLink(const char *long_dynamic_link)
|
Creates a shortened Dynamic Link from a given long Dynamic Link.
|
GetShortLink(const char *long_dynamic_link, const DynamicLinkOptions & options)
|
Creates a shortened Dynamic Link from a given long Dynamic Link.
|
GetShortLinkLastResult()
|
Get the (possibly still pending) results of the most recent GetShortUrl call.
|
Initialize(const App & app, Listener *listener)
|
Deprecated.
Dynamic Links is now deprecated. Please see the support documentation at https://firebase.google.com/support/dynamic-links-faq for more information. Initialize Firebase Dynamic Links. |
SetListener(Listener *listener)
|
Listener *
Set the listener for receiving Dynamic Links. |
Terminate()
|
void
Terminate Firebase Dynamic Links. |
Classes |
|
---|---|
firebase:: |
Base class used to receive Dynamic Links. |
Structs |
|
---|---|
firebase:: |
Android Parameters. |
firebase:: |
The received Dynamic Link. |
firebase:: |
The information needed to generate a Dynamic Link. |
firebase:: |
Additional options for Dynamic Link creation. |
firebase:: |
The returned value from creating a Dynamic Link. |
firebase:: |
Google Analytics Parameters. |
firebase:: |
iOS Parameters. |
firebase:: |
iTunes Connect App Analytics Parameters. |
firebase:: |
Social meta-tag Parameters. |
Enumerations
ErrorCode
ErrorCode
Error code used by Futures returned by this API.
LinkMatchStrength
LinkMatchStrength
Enum describing the strength of a dynamic links match.
This version is local to dynamic links; there is a similar enum in invites and another internal version in app.
PathLength
PathLength
The desired path length for shortened Dynamic Link URLs.
Properties | |
---|---|
kPathLengthDefault
|
Uses the server-default for the path length. See https://goo.gl/8yDAqC for more information. |
kPathLengthShort
|
Typical short link for non-sensitive links. |
kPathLengthUnguessable
|
Short link that uses a very long path to make it more difficult to guess. Useful for sensitive links. |
Functions
Fetch
void Fetch()
Fetch any pending dynamic links.
Each pending link will trigger a call to the registered Listener class.
This function is implicitly called on initialization. On iOS this is called automatically when the app gains focus, but on Android this needs to be called manually.
Deprecated. Dynamic Links is now deprecated. Please see the support documentation at https://firebase.google.com/support/dynamic-links-faq for more information.
GetLongLink
GeneratedDynamicLink GetLongLink( const DynamicLinkComponents & components )
Creates a long Dynamic Link from the given parameters.
GetShortLink
Future< GeneratedDynamicLink > GetShortLink( const DynamicLinkComponents & components )
Creates a shortened Dynamic Link from the given parameters.
Details | |||
---|---|---|---|
Parameters |
|
GetShortLink
Future< GeneratedDynamicLink > GetShortLink( const DynamicLinkComponents & components, const DynamicLinkOptions & options )
Creates a shortened Dynamic Link from the given parameters.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
GetShortLink
Future< GeneratedDynamicLink > GetShortLink( const char *long_dynamic_link )
Creates a shortened Dynamic Link from a given long Dynamic Link.
Details | |||
---|---|---|---|
Parameters |
|
GetShortLink
Future< GeneratedDynamicLink > GetShortLink( const char *long_dynamic_link, const DynamicLinkOptions & options )
Creates a shortened Dynamic Link from a given long Dynamic Link.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
GetShortLinkLastResult
Future< GeneratedDynamicLink > GetShortLinkLastResult()
Get the (possibly still pending) results of the most recent GetShortUrl call.
Initialize
InitResult Initialize( const App & app, Listener *listener )
Initialize Firebase Dynamic Links.
After Initialize is called, the implementation may call functions on the Listener provided at any time.
Deprecated. Dynamic Links is now deprecated. Please see the support documentation at https://firebase.google.com/support/dynamic-links-faq for more information.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Returns |
kInitResultSuccess if initialization succeeded, or kInitResultFailedMissingDependency on Android if Google Play services is not available on the current device.
|
SetListener
Listener * SetListener( Listener *listener )
Set the listener for receiving Dynamic Links.
Deprecated. Dynamic Links is now deprecated. Please see the support documentation at https://firebase.google.com/support/dynamic-links-faq for more information.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
Pointer to the previously set listener.
|
Terminate
void Terminate()
Terminate Firebase Dynamic Links.
Deprecated. Dynamic Links is now deprecated. Please see the support documentation at https://firebase.google.com/support/dynamic-links-faq for more information.