Telepathy-IPC

Additional

Language
Kotlin
Version
v1.0.1 (Oct 26, 2020)
Created
Jul 30, 2020
Updated
Oct 29, 2020
Owner
supitsara prathan (prathanbomb)
Contributor
supitsara prathan (prathanbomb)
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

Telepathy-IPC

A simple library for sending data between appication.

Installation

Add this to your gradle.build

implementation 'th.co.digio.poolshark:telepathy-ipc:1.0.2_20201029'

Usage

Start Connection

Synapse.instance().startConnection(object : Synapse.ConnectionListener {
            override fun onConnected() {
                // TODO when connected
            }

            override fun onDisconnected() {
                // TODO when disconnected
            }
        }, target_package_name)

Listening for incoming data

Synapse.instance().registerListener(object : Synapse.DataListener {
            override fun onReceived(data: Bundle?) {
                // TODO when receive data
            }
        })

Transmit data

Synapse.instance().transmit(dataBundle)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT