Parcel.EnforceInterface(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Read the header written by writeInterfaceToken and verify it matches the interface name in question.
[Android.Runtime.Register("enforceInterface", "(Ljava/lang/String;)V", "")]
public void EnforceInterface (string interfaceName);
[<Android.Runtime.Register("enforceInterface", "(Ljava/lang/String;)V", "")>]
member this.EnforceInterface : string -> unit
Parameters
- interfaceName
- String
- Attributes
Remarks
Read the header written by writeInterfaceToken and verify it matches the interface name in question. If the wrong interface type is present, SecurityException
is thrown. When used over binder, this exception should propagate to the caller.
Java documentation for android.os.Parcel.enforceInterface(java.lang.String)
.
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.