Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new method in TeleportClient to send a message with a custom ResultCallback #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gabrielemariotti
Copy link

This feature allows to use a custom ResultCallback sending a message in the TeleportClient.
The previous behaviour is preserved.
Also provided a little javadoc for changed methods.

An example to use the new feature (useful to update the doc):

ResultCallback<MessageApi.SendMessageResult> callback = new        
       ResultCallback<MessageApi.SendMessageResult>() {
                @Override
                public void onResult(MessageApi.SendMessageResult sendMessageResult) { 
                             // Provide your custom code
                }
            };
mTeleportClient.sendMessage(HELLO_WORLD_WEAR_PATH,null,callback);

Added a new method in TeleportClient to send a message with a custom ResultCallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant