Sign in

简柏林 / StudyMachine · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 1
  • Merge Requests 0
  • Labels
  • Wiki
  • Network
  • StudyMachine
  • ..
  • action
  • ToastAction.java
  • 首次提交
    8705e211
    简柏林 authored
    2022-09-07 09:20:53 +0800  
    Browse Files »
ToastAction.java 447 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package com.studymachine.www.action;

import androidx.annotation.StringRes;

import com.hjq.toast.ToastUtils;

/**
 *    time   : 2019/12/08
 *    desc   : 吐司意图
 */
public interface ToastAction {

    default void toast(CharSequence text) {
        ToastUtils.show(text);
    }

    default void toast(@StringRes int id) {
        ToastUtils.show(id);
    }

    default void toast(Object object) {
        ToastUtils.show(object);
    }
}