MCPcopy
hub / github.com/yume-chan/ya-webadb / clear

Method clear

libraries/android-bin/src/logcat.ts:491–498  ·  view source on GitHub ↗
(ids?: readonly LogId[])

Source from the content-addressed store, hash-verified

489 }
490
491 async clear(ids?: readonly LogId[]): Promise<void> {
492 const args = ["logcat", "-c"];
493 if (ids && ids.length > 0) {
494 args.push("-b", Logcat.joinLogId(ids));
495 }
496
497 await this.adb.subprocess.noneProtocol.spawnWaitText(args);
498 }
499
500 binary(options?: LogcatOptions): ReadableStream<AndroidLogEntry> {
501 return new WrapReadableStream(async () => {

Callers 6

clearReverseTunnelsMethod · 0.80
closeMethod · 0.80
errorMethod · 0.80
removeAllMethod · 0.80
clearReverseTunnelsMethod · 0.80
resetMethod · 0.80

Calls 3

pushMethod · 0.80
joinLogIdMethod · 0.80
spawnWaitTextMethod · 0.45

Tested by

no test coverage detected