RocketChat/Rocket.Chat.Android.SDK

Name: Rocket.Chat.Android.SDK

Owner: Rocket.Chat

Description: Rocket.Chat's Android Native SDK - DEPRECATED

Created: 2017-05-05 13:13:30.0

Updated: 2018-05-15 13:21:33.0

Pushed: 2018-05-15 13:20:59.0

Homepage:

Size: 3101

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DEPRECATED

This is no longer supported, please consider using the Rocket.Chat.Kotlin.SDK instead.

Rocket.Chat.Android.SDK

This SDK is divided into two parts

  1. Core SDK
  2. LiveChat SDK

This SDK currently provides support to include livechat client functionality in any android app.
Core SDK coming soon…..

Get it on Google Play

Demo

LiveChat

License

MIT License

Gradle

Add below snippet in build.gradle file.

ndencies {
compile 'com.github.rocketchat:rocketchatsdk:0.2.0'

Download

How to use

There are two major parts required to be followed

1. Set up Application class

Example :

  1. Creating custom Application class as “MyApplication”
public class MyApplication extends LiveChatApplication {

public static String serverurl="wss://livechattest.rocket.chat/websocket";

@Override
public void onCreate() {
    setServerUrl(serverurl);
    super.onCreate();
}

  1. Declaring class name in manifest file
    lication
        android:name=".MyApplication" \\ can change depending on package location
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        .........
        ........
    
2. Open ChatActivity

Example:
support is a button (required view). Clicking on button will fire intent to open ChatActivity.

 support.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Intent intent=new Intent(getApplicationContext(),ChatActivity.class);
            startActivity(intent);
        }
    });

For more information refer sample code under 'example' directory.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.