MCPcopy Index your code
hub / github.com/PureWriter/ToastCompat

github.com/PureWriter/ToastCompat @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
43 symbols 75 edges 7 files 7 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ToastCompat

Build Status maven-central

Usage

implementation 'me.drakeet.support:toastcompat:1.0.0'
ToastCompat.makeText(context, "hello world!", Toast.LENGTH_SHORT).show();

Or with BadTokenListener#onBadTokenCaught(@NonNull Toast toast):

ToastCompat.makeText(this, "hello", Toast.LENGTH_SHORT)
    .setBadTokenListener(toast -> {
        ...
    }).show();

Goodbye, BadTokenException.

License

Copyright 2017 drakeet.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Extension points exported contracts — how you extend this code

BadTokenListener (Interface)
@author drakeet
library/src/main/java/me/drakeet/support/toast/BadTokenListener.java

Core symbols most depended-on inside this repo

getView
called by 2
library/src/main/java/me/drakeet/support/toast/ToastCompat.java
setContext
called by 2
library/src/main/java/me/drakeet/support/toast/ToastCompat.java
makeText
called by 1
library/src/main/java/me/drakeet/support/toast/ToastCompat.java
setBadTokenListener
called by 1
library/src/main/java/me/drakeet/support/toast/ToastCompat.java
show
called by 1
library/src/main/java/me/drakeet/support/toast/ToastCompat.java
onBadTokenCaught
called by 1
library/src/main/java/me/drakeet/support/toast/BadTokenListener.java
SafeToastContext
called by 0
library/src/main/java/me/drakeet/support/toast/SafeToastContext.java
getApplicationContext
called by 0
library/src/main/java/me/drakeet/support/toast/SafeToastContext.java

Shape

Method 34
Class 8
Interface 1

Languages

Java100%

Modules by API surface

library/src/main/java/me/drakeet/support/toast/ToastCompat.java19 symbols
library/src/main/java/me/drakeet/support/toast/SafeToastContext.java14 symbols
sample/src/test/java/me/drakeet/toast/ExampleUnitTest.java2 symbols
sample/src/main/java/me/drakeet/toast/sample/MainActivity.java2 symbols
sample/src/androidTest/java/me/drakeet/toast/sample/MainActivityTest.java2 symbols
library/src/test/java/me/drakeet/toast/ExampleUnitTest.java2 symbols
library/src/main/java/me/drakeet/support/toast/BadTokenListener.java2 symbols

For agents

$ claude mcp add ToastCompat \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact