mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Update TerminalView and TerminalViewClient javadocs
This commit is contained in:
@@ -210,14 +210,11 @@ public final class TerminalView extends View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param terminalViewClient Interface for communicating with the terminal view client. It allows
|
* @param client The {@link TerminalViewClient} interface implementation to allow
|
||||||
* for getting various configuration options from the client and
|
* for communication between {@link TerminalView} and its client.
|
||||||
* for sending back data to the client like logs, key events, both
|
|
||||||
* hardware and IME (which makes it different from that available with
|
|
||||||
* {@link View#setOnKeyListener(OnKeyListener)}, etc.
|
|
||||||
*/
|
*/
|
||||||
public void setTerminalViewClient(TerminalViewClient terminalViewClient) {
|
public void setTerminalViewClient(TerminalViewClient client) {
|
||||||
this.mClient = terminalViewClient;
|
this.mClient = client;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -3,13 +3,16 @@ package com.termux.view;
|
|||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.ScaleGestureDetector;
|
import android.view.ScaleGestureDetector;
|
||||||
|
import android.view.View;
|
||||||
|
|
||||||
import com.termux.terminal.TerminalSession;
|
import com.termux.terminal.TerminalSession;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Input and scale listener which may be set on a {@link TerminalView} through
|
* The interface for communication between {@link TerminalView} and its client. It allows for getting
|
||||||
* {@link TerminalView#setTerminalViewClient(TerminalViewClient)}.
|
* various configuration options from the client and for sending back data to the client like logs,
|
||||||
* <p/>
|
* key events, both hardware and IME (which makes it different from that available with
|
||||||
|
* {@link View#setOnKeyListener(View.OnKeyListener)}, etc. It must be set for the
|
||||||
|
* {@link TerminalView} through {@link TerminalView#setTerminalViewClient(TerminalViewClient)}.
|
||||||
*/
|
*/
|
||||||
public interface TerminalViewClient {
|
public interface TerminalViewClient {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user