当前位置: 首页>>代码示例>>Java>>正文


Java EmojiOneProvider类代码示例

本文整理汇总了Java中com.vanniktech.emoji.one.EmojiOneProvider的典型用法代码示例。如果您正苦于以下问题:Java EmojiOneProvider类的具体用法?Java EmojiOneProvider怎么用?Java EmojiOneProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EmojiOneProvider类属于com.vanniktech.emoji.one包,在下文中一共展示了EmojiOneProvider类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initWithCustomServer

import com.vanniktech.emoji.one.EmojiOneProvider; //导入依赖的package包/类
/**
 * The first method you need to be invoke to using qiscus sdk. Call this method from your Application
 * class. You can not using another qiscus feature if you not invoke this method first. Here sample
 * to call this method:
 * <pre>
 * {@code
 * public class SampleApps extends Application {
 *  public void onCreate() {
 *      super.onCreate();
 *      Qiscus.initWithCustomServer(this, my-app-id, "http://myserver.com", "ssl://mqtt.myserver.com:1885");
 *  }
 * }
 * }
 * </pre>
 *
 * @param application   Application instance
 * @param qiscusAppId   Your Qiscus App Id
 * @param serverBaseUrl Your qiscus chat engine base url
 * @param mqttBrokerUrl Your Mqtt Broker url
 */
public static void initWithCustomServer(Application application, String qiscusAppId, String serverBaseUrl, String mqttBrokerUrl) {
    appInstance = application;
    appId = qiscusAppId;
    appServer = serverBaseUrl;
    Qiscus.mqttBrokerUrl = mqttBrokerUrl;
    appHandler = new Handler(appInstance.getApplicationContext().getMainLooper());
    taskExecutor = new ScheduledThreadPoolExecutor(5);
    localDataManager = new LocalDataManager();
    dataStore = new QiscusDataBaseHelper();
    chatConfig = new QiscusChatConfig();
    heartBeat = 60000;
    appInstance.registerActivityLifecycleCallbacks(QiscusActivityCallback.INSTANCE);
    authorities = appInstance.getPackageName() + ".qiscus.sdk.provider";

    Jupuk.init(application);

    startPusherService();
    QiscusCacheManager.getInstance().setLastChatActivity(false, 0);

    configureFcmToken();

    EmojiManager.install(new EmojiOneProvider());
    QiscusLogger.print("init Qiscus with app Id " + appId);
}
 
开发者ID:qiscus,项目名称:qiscus-sdk-android,代码行数:45,代码来源:Qiscus.java

示例2: onCreate

import com.vanniktech.emoji.one.EmojiOneProvider; //导入依赖的package包/类
@Override
    public void onCreate() {
        super.onCreate();
        Log.d("Myapp " , " start");
//        _instance = this;
        FirebaseApp.getApps(this);
        //enable the offline capability for firebase
        if (!FirebaseApp.getApps(this).isEmpty()) {
            FirebaseDatabase.getInstance().setPersistenceEnabled(true);
        }

        EmojiManager.install(new EmojiOneProvider());
        Picasso.Builder builder = new Picasso.Builder(this);
//        builder.downloader(new OkHttpDownloader(this,Integer.MAX_VALUE));
        Picasso built = builder.build();
//        built.setIndicatorsEnabled(false);
//        built.setLoggingEnabled(true);
        Picasso.setSingletonInstance(built);

        // Initialize the SDK before executing any other operations,
        FacebookSdk.sdkInitialize(getApplicationContext());
        AppEventsLogger.activateApp(this);
    }
 
开发者ID:clementf2b,项目名称:FaceT,代码行数:24,代码来源:MyApp.java

示例3: onOptionsItemSelected

import com.vanniktech.emoji.one.EmojiOneProvider; //导入依赖的package包/类
@Override public boolean onOptionsItemSelected(final MenuItem item) {
  switch (item.getItemId()) {
    case R.id.show_dialog:
      MainDialog.show(this);
      return true;
    case R.id.variantIos:
      EmojiManager.install(new IosEmojiProvider());
      recreate();
      return true;
    case R.id.variantGoogle:
      EmojiManager.install(new GoogleEmojiProvider());
      recreate();
      return true;
    case R.id.variantTwitter:
      EmojiManager.install(new TwitterEmojiProvider());
      recreate();
      return true;
    case R.id.variantGoogleCompat:
      if (emojiCompat == null) {
        final EmojiCompat.Config config = new BundledEmojiCompatConfig(this);
        config.setReplaceAll(true);
        emojiCompat = EmojiCompat.init(config);
      }
      EmojiManager.install(new GoogleCompatEmojiProvider(emojiCompat));
      recreate();
      return true;
    case R.id.variantEmojiOne:
      EmojiManager.install(new EmojiOneProvider());
      recreate();
      return true;
    default:
      return super.onOptionsItemSelected(item);
  }
}
 
开发者ID:vanniktech,项目名称:Emoji,代码行数:35,代码来源:MainActivity.java

示例4: onCreate

import com.vanniktech.emoji.one.EmojiOneProvider; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    AppUtils.onCreate();

    // 注册Activity生命周期回调监听
    registerActivityLifecycleCallbacks(ActivityLifcycleManager.get());
    // 滑动返回
    BGASwipeBackManager.getInstance().init(this);
    // emoji
    EmojiManager.install(new EmojiOneProvider());
    // Fresco - 图片加载
    FrescoManager.init(this, FileManager.getImageCacheDir("fresco"));
}
 
开发者ID:ImKarl,项目名称:JianshuApp,代码行数:15,代码来源:JSApplication.java


注:本文中的com.vanniktech.emoji.one.EmojiOneProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。