mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +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
|
||||
* for getting various configuration options from the client and
|
||||
* 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.
|
||||
* @param client The {@link TerminalViewClient} interface implementation to allow
|
||||
* for communication between {@link TerminalView} and its client.
|
||||
*/
|
||||
public void setTerminalViewClient(TerminalViewClient terminalViewClient) {
|
||||
this.mClient = terminalViewClient;
|
||||
public void setTerminalViewClient(TerminalViewClient client) {
|
||||
this.mClient = client;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -3,13 +3,16 @@ package com.termux.view;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.ScaleGestureDetector;
|
||||
import android.view.View;
|
||||
|
||||
import com.termux.terminal.TerminalSession;
|
||||
|
||||
/**
|
||||
* Input and scale listener which may be set on a {@link TerminalView} through
|
||||
* {@link TerminalView#setTerminalViewClient(TerminalViewClient)}.
|
||||
* <p/>
|
||||
* The interface for communication between {@link TerminalView} and its client. It allows for getting
|
||||
* various configuration options from the client and 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(View.OnKeyListener)}, etc. It must be set for the
|
||||
* {@link TerminalView} through {@link TerminalView#setTerminalViewClient(TerminalViewClient)}.
|
||||
*/
|
||||
public interface TerminalViewClient {
|
||||
|
||||
|
Reference in New Issue
Block a user