-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from /issues/94-readonly-properties
Improve model classes with read-only properties
- Loading branch information
Showing
17 changed files
with
403 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
/** Active call detection data. */ | ||
interface ActiveCallDetection { | ||
callState: CallState; | ||
/** State of ongoing call. */ | ||
readonly callState: CallState; | ||
} | ||
|
||
/** State of ongoing call. */ | ||
enum CallState { | ||
/** Idle state: not ringing and no call established. */ | ||
IDLE = "IDLE", | ||
/** Device is ringing. An incoming call is being signaled. */ | ||
RINGING = "RINGING", | ||
/** In call. A telephony call is established. */ | ||
ACTIVE_CALL = "ACTIVE_CALL", | ||
/** In communication. An audio/video chat or VoIP call is established. */ | ||
ACTIVE_COMMUNNICATION = "ACTIVE_COMMUNNICATION", | ||
/** | ||
* Call screening is in progress. | ||
* The call is connected, and audio is accessible to call screening applications, | ||
* but other audio use cases are still possible. | ||
*/ | ||
CALL_SCREENING = "CALL_SCREENING", | ||
/** | ||
* A telephony call is established, and its audio is being redirected to another device. | ||
*/ | ||
ACTIVE_CALL_REDIRECT = "ACTIVE_CALL_REDIRECT", | ||
/** | ||
* An audio/video chat or VoIP call is established, | ||
* and its audio is being redirected to another device. | ||
*/ | ||
ACTIVE_COMMUNICATION_REDIRECT = "ACTIVE_COMMUNICATION_REDIRECT", | ||
/** Unknown state. */ | ||
UNKNOWN = "UNKNOWN" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
/** App presence detection data. */ | ||
interface AppPresenceDetection { | ||
remoteDesktopApps: [NamedApkItemInfo]; | ||
/** Detected remote desktop apps. */ | ||
readonly remoteDesktopApps: [NamedApkItemInfo]; | ||
} | ||
|
||
/** Rasp detection app item. */ | ||
interface NamedApkItemInfo { | ||
/** Display name item as defined in the configuration. */ | ||
displayName: string; | ||
readonly displayName: string; | ||
/** Obtained application name. */ | ||
appName: string; | ||
readonly appName: string; | ||
/** Package name (application ID) of the app. */ | ||
packageName: string; | ||
readonly packageName: string; | ||
/** Version name. */ | ||
versionName: string; | ||
readonly versionName: string; | ||
/** Version code. */ | ||
versionCode: number; | ||
readonly versionCode: number; | ||
/** Base64 encoded SHA-1 signature hash. */ | ||
signatureHash: string; | ||
readonly signatureHash: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,35 @@ | ||
/** Biometry config detection data. */ | ||
interface BiometryDetection { | ||
biometricStatus: BiometricStatus; | ||
androidxLibStatus: number; | ||
/** Status of the biometry config on the device. */ | ||
readonly biometricStatus: BiometricStatus; | ||
/** | ||
* Status of the biometry config on the device, the raw value obtained | ||
* from 'androidx.biometric.BiometricManager'. | ||
*/ | ||
readonly androidxLibStatus: number; | ||
} | ||
|
||
enum BiometricStatus { | ||
/** | ||
* Corresponds to 'androidx.biometric.BiometricManager.BIOMETRIC_SUCCESS'. | ||
*/ | ||
CONFIGURED = "CONFIGURED", | ||
/** | ||
* Corresponds to 'androidx.biometric.BiometricManager.BIOMETRIC_STATUS_UNKNOWN'. | ||
*/ | ||
UNKNOWN = "UNKNOWN", | ||
/** | ||
* Corresponds to either 'androidx.biometric.BiometricManager.BIOMETRIC_ERROR_UNSUPPORTED' | ||
* or 'androidx.biometric.BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE'. | ||
*/ | ||
UNSUPPORTED = "UNSUPPORTED", | ||
/** | ||
* Corresponds to either 'androidx.biometric.BiometricManager.BIOMETRIC_ERROR_HW_UNAVAILABLE' | ||
* or 'androidx.biometric.BiometricManager.BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED'. | ||
*/ | ||
CURRENTLY_UNAVAILABLE = "CURRENTLY_UNAVAILABLE", | ||
/** | ||
* Corresponds to 'androidx.biometric.BiometricManager.BIOMETRIC_ERROR_NONE_ENROLLED'. | ||
*/ | ||
NONE_ENROLLED = "NONE_ENROLLED" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
|
||
/** The result type of repackaging detection. */ | ||
enum RepackagingResult { | ||
/** The app is repackaged. */ | ||
REPACKAGED_APP = "REPACKAGED_APP", | ||
/** The app is original, unaltered. */ | ||
ORIGINAL_APP = "ORIGINAL_APP", | ||
/** | ||
* Invalid configuration of repackaging detection. | ||
* Repackaging can't be determined. | ||
*/ | ||
INVALID_CONFIG = "INVALID_CONFIG" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/** Screen reader blocking data. */ | ||
interface ScreenReaderDetection { | ||
/** Whether a not allowed screen reader is enabled. */ | ||
isNotAllowedScreenReaderEnabled: boolean; | ||
readonly isNotAllowedScreenReaderEnabled: boolean; | ||
/** Not allowed screen readers that are enabled. Identified by their package names (application IDs). */ | ||
notAllowedScreenReaders: [string]; | ||
readonly notAllowedScreenReaders: [string]; | ||
/** List of all enabled screen readers on the device. */ | ||
enabledScreenReaders: [string]; | ||
readonly enabledScreenReaders: [string]; | ||
/** List of all installed screen readers on the device. */ | ||
installedScreenReaders: [string]; | ||
readonly installedScreenReaders: [string]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
/** Screen sharing detection data. */ | ||
interface ScreenSharingDetection { | ||
/** Number of detected displays that the content is displayed on. */ | ||
numberOfDisplays: number; | ||
readonly numberOfDisplays: number; | ||
/** Whether a device screen is being shared (mirror) elsewhere. */ | ||
isScreenShared: number; | ||
readonly isScreenShared: number; | ||
/** Transient data containing information about detected transient changes. */ | ||
transientData: TransientScreenSharingData; | ||
readonly transientData: TransientScreenSharingData; | ||
/** Whether the detection result is problematic for the app. */ | ||
isProblematic: boolean; | ||
readonly isProblematic: boolean; | ||
/** Whether the detection result indicates a transient change. */ | ||
isTransientChange: boolean; | ||
readonly isTransientChange: boolean; | ||
} | ||
|
||
/** Obtained transient data. */ | ||
interface TransientScreenSharingData { | ||
/** Whether an added display has just been detected. */ | ||
displayAdded: boolean; | ||
readonly displayAdded: boolean; | ||
/** Whether a removed display has just been detected. */ | ||
displayRemoved: boolean; | ||
readonly displayRemoved: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
|
||
/** Tapjacking detection data. */ | ||
interface TapjackingDetection { | ||
isTapjackingBlocked: boolean; | ||
tapjackingCapableApps: [string]; | ||
/** Whether the SDK is currently blocking tapjacking. */ | ||
readonly isTapjackingBlocked: boolean; | ||
/** | ||
* List of "bad" apps capable of performing tapjacking. | ||
* A bad app is one that has a treat index same or higher | ||
* than @see MalwarelyticsAndroidTapjackingBlockConfig.blockTapjackingSensitivity. | ||
*/ | ||
readonly tapjackingCapableApps: [string]; | ||
} |
Oops, something went wrong.