public final class

LockSettings

extends Object
implements Parcelable
java.lang.Object
   ↳ lineageos.profiles.LockSettings

Class Overview

The LockSettings class allows for overriding and setting the current Lock screen state/security level. Value should be one a constant from of Profile.LockMode

Example for disabling lockscreen security:

 LockSettings lock = new LockSettings(Profile.LockMode.INSECURE);
 profile.setScreenLockMode(lock);
 

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
LockSettings(Parcel parcel)
Unwrap LockSettings from a parcel.
LockSettings()
Construct a LockSettings with a default value of ERROR(/Profile.LockMode.DEFAULT).
LockSettings(int value)
Construct a LockSettings with a default value.
Public Methods
int describeContents()
int getValue()
Get the value for the LockSettings
void setValue(int value)
Set the value for the LockSettings see Profile.LockMode
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public LockSettings (Parcel parcel)

added in API level 2

Unwrap LockSettings from a parcel.

public LockSettings ()

added in API level 2

Construct a LockSettings with a default value of ERROR(/Profile.LockMode.DEFAULT).

public LockSettings (int value)

added in API level 2

Construct a LockSettings with a default value.

Parameters
value int

Public Methods

public int describeContents ()

added in API level 2

Returns
int

public int getValue ()

added in API level 2

Get the value for the LockSettings

Returns
int a constant from Profile.LockMode

public void setValue (int value)

added in API level 2

Set the value for the LockSettings see Profile.LockMode

Parameters
value int