Android
Last updated
Was this helpful?
Last updated
Was this helpful?
Copy arr library file in the libs folder of App-level directory (create if missing)
After, Add arr file and additional library as below.
Add Internet permission for servlet communication.
CLASS
Content
Purpose
Creator for initial implementation
Use
OmniLinkManager(this, OmniLinkListener)
Parameter
Activity, OmniLinkListener
Return
void
Example
var omniLinkManager = OmniLinkManager(this, object: OmniLinkListener {
override fun receive(data: String) {
}
override fun sendFinish() {
}
})
Note
Creator
CLASS
Content
Purpose
Redirects to the market, when target App is not stored on the device
Use
setPackageName(String)
Parameter
packageName
Return
void
Example
omniLinkManager.setPackageName(“target package name”)
Note
Use the transmitting App
Returns the error msg when the Package is not saved
CLASS
Content
Purpose
Use when the target App already exists in the Os stack
Use
setActivity(Activity)
Parameter
activity
Return
void
Example
omniLinkManager.setActivity(this)
Note
uses the target App
CLASS
Content
Purpose
Use when calling and forward data from the transmitting App to the target App
Use
callApp(String, String, String, String)
Parameter
host, scheme, type, select
Return
void
Example
omniLinkManager.callApp(this)
Note
Uses the transmitting App
CLASS
Content
Purpose
Forwards the Result data to the transmitting App
Use
callApp(OmniLinkData)
Parameter
omniLinkData
Return
void
Example
omniLinkManager.returnResult(omniLinkData)
Note
Uses the target App
CLASS
Content
Purpose
parsing the delivered data from the target app to transmitting app
Use
receiveResult(Int, Int, Intent)
Parameter
requestCode, resultCode, intent
Return
void
Example
omniLinkManager.receiveResult(requestCode, resultCode, intent)
Note
Uses the transmitting App
CLASS
Content
Purpose
Checks if an App in that package exists in the device
Use
isExistPackage(Context, String)
Parameter
context, packageName
Return
Boolean
Example
Util.isExistPackage(context, “package name”)
Note
Uses transmitting App
Uses target App
CLASS
Content
Purpose
After exiting an App, removes the termination app in the OS stack
Use
exit(Activity)
Parameter
activity
Return
void
Example
Util.exit(this)
Note
Uses the transmitting App