DrmRights Constructors
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.
Overloads
DrmRights(ProcessedData, String) |
Creates a |
DrmRights(File, String) |
Creates a |
DrmRights(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
DrmRights(String, String) |
Creates a |
DrmRights(String, String, String) |
Creates a |
DrmRights(String, String, String, String) |
Creates a |
DrmRights(ProcessedData, String)
Creates a DrmRights
object with the given parameters.
[Android.Runtime.Register(".ctor", "(Landroid/drm/ProcessedData;Ljava/lang/String;)V", "")]
public DrmRights (Android.Drm.ProcessedData? data, string? mimeType);
[<Android.Runtime.Register(".ctor", "(Landroid/drm/ProcessedData;Ljava/lang/String;)V", "")>]
new Android.Drm.DrmRights : Android.Drm.ProcessedData * string -> Android.Drm.DrmRights
Parameters
- data
- ProcessedData
A ProcessedData
object containing rights information.
Must not be null.
- mimeType
- String
The MIME type. It must not be null or an empty string.
- Attributes
Remarks
Creates a DrmRights
object with the given parameters.
Java documentation for android.drm.DrmRights.DrmRights(android.drm.ProcessedData, 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.
Applies to
DrmRights(File, String)
Creates a DrmRights
object with the given parameters.
[Android.Runtime.Register(".ctor", "(Ljava/io/File;Ljava/lang/String;)V", "")]
public DrmRights (Java.IO.File? rightsFile, string? mimeType);
[<Android.Runtime.Register(".ctor", "(Ljava/io/File;Ljava/lang/String;)V", "")>]
new Android.Drm.DrmRights : Java.IO.File * string -> Android.Drm.DrmRights
Parameters
- rightsFile
- File
File containing rights information.
- mimeType
- String
MIME type. Must not be null or an empty string.
- Attributes
Remarks
Creates a DrmRights
object with the given parameters.
Java documentation for android.drm.DrmRights.DrmRights(java.io.File, 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.
Applies to
DrmRights(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected DrmRights (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Drm.DrmRights : nativeint * Android.Runtime.JniHandleOwnership -> Android.Drm.DrmRights
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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
DrmRights(String, String)
Creates a DrmRights
object with the given parameters.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public DrmRights (string? rightsFilePath, string? mimeType);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Drm.DrmRights : string * string -> Android.Drm.DrmRights
Parameters
- rightsFilePath
- String
Path to the file containing rights information.
- mimeType
- String
MIME type. Must not be null or an empty string.
- Attributes
Remarks
Creates a DrmRights
object with the given parameters.
Java documentation for android.drm.DrmRights.DrmRights(java.lang.String, 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.
Applies to
DrmRights(String, String, String)
Creates a DrmRights
object with the given parameters.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")]
public DrmRights (string? rightsFilePath, string? mimeType, string? accountId);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Drm.DrmRights : string * string * string -> Android.Drm.DrmRights
Parameters
- rightsFilePath
- String
Path to the file containing rights information.
- mimeType
- String
MIME type. Must not be null or an empty string.
- accountId
- String
Account ID of the user.
- Attributes
Remarks
Creates a DrmRights
object with the given parameters.
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
DrmRights(String, String, String, String)
Creates a DrmRights
object with the given parameters.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")]
public DrmRights (string? rightsFilePath, string? mimeType, string? accountId, string? subscriptionId);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Android.Drm.DrmRights : string * string * string * string -> Android.Drm.DrmRights
Parameters
- rightsFilePath
- String
Path to the file containing rights information.
- mimeType
- String
MIME type. Must not be null or an empty string.
- accountId
- String
Account ID of the user.
- subscriptionId
- String
Subscription ID of the user.
- Attributes
Remarks
Creates a DrmRights
object with the given parameters.
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.