目录

Code Structure

No.

File

Description

1

AlertActivity

Displays a dialog box for the display device user to determine whether to allow the connection request from the mobile device.

2

MainActivity

Provides the entry for setting the projection service switch, encryption switch, and password, and displays the local device name and network information.

3

SinkTesterService

Initializes the Cast Engine service, configures projection settings, and processes the logic of connection requests and connection status changes.

4

PasswordActivity

Sets a password in password mode.

5

PinActivity

Shows the PIN after receiving a connection request from a mobile device in PIN mode.

6

PlayActivity

Displays the projected screen.

7

SeparatedEditText

Customized control for the password text box.

8

SharedPreferenceUtil

Provides the tool functions for accessing data in SharedPreference mode, to persist passwords.

9

Utils

Provides static methods of the utility class.

10

attrs.xml

Provides user-defined attributes for the password text box.

11

activity_alert.xml

Provides the specific layout of AlertActivity.

12

activity_main.xml

Provides the specific layout of MainActivity.

13

activity_password.xml

Provides the specific layout of PasswordActivity.

14

activity_pin.xml

Provides the specific layout of PinActivity.

15

activity_play.xml

Provides the specific layout of PlayActivity.