SharedMemory.SetProtect(Int32) Method

Definition

Sets the protection on the shared memory to the combination specified in prot, which is either a bitwise-or'd combination of android.system.OsConstants#PROT_READ, android.system.OsConstants#PROT_WRITE, android.system.OsConstants#PROT_EXEC from android.system.OsConstants, or android.system.OsConstants#PROT_NONE, to remove all further access.

[Android.Runtime.Register("setProtect", "(I)Z", "", ApiSince=27)]
public bool SetProtect (int prot);
[<Android.Runtime.Register("setProtect", "(I)Z", "", ApiSince=27)>]
member this.SetProtect : int -> bool

Parameters

prot
Int32

Any bitwise-or'ed combination of android.system.OsConstants#PROT_READ, android.system.OsConstants#PROT_WRITE, and android.system.OsConstants#PROT_EXEC; or android.system.OsConstants#PROT_NONE

Returns

Boolean

Whether or not the requested protection was applied. Returns true on success, false if the requested protection was broader than the existing protection.

Attributes

Remarks

Java documentation for android.os.SharedMemory.setProtect(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to