Code Monkey home page Code Monkey logo

tonganlearn's Introduction

通安 SDK Demo

本demo 为通安 Android SDK demo的演示项目。通过简单几步就可对接平台。


接入指南

使用Gradle方式:

1.在Project的build.gradle文件中配置。

allprojects {
    repositories {
        //必须配置
        jcenter()
    }
}

2.在App的build.gradle的文件中添加依赖。

dependencies {
        implementation 'com.tongan.study:tongan_learn_library:1.1.1'
}

开始使用

准备

请先确保通过文档获取到学习URL

使用

1.通过构造模式

建议采用此方法。

new StudyMessage.Builder()
.setStudyUrl("获取到的 URL") // 此方法为必要方法,我们通过它来实现对 URL 传递。(必要方法,必须调用)
.setStatusBarColor(statusBarColor) //设置状态栏颜色值,可根据实际情况自行更改。默认是"#F58609"。(非必要)
.setThemColor(themColor)//设置有关相机拍照页面 button 背景色。默认是"#F58609"。(非必要)
.builder().study(Activity); //Activity 上下文对象

2.通过传统Intent方法调用

Intent intent = new Intent(this, StudyActivity.class);
intent.putExtra(TaConstant.TONGAN_LMS_URL, “获取到的 URL”);
intent.putExtra(TaConstant.TONGAN_LMS_STATUS,"设置状态栏颜色值");
intent.putExtra(TaConstant.TONGAN_LMS_THEM,"设置相机页面 button 颜色值");
startActivity(intent);

其他

愿您每天都有可以分享的人和事。🐶

通安技术 c

tonganlearn's People

Contributors

lcupup avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.