OutputConfiguration.Usage Property
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.
Get the usage flag associated with this OutputConfiguration.
public long Usage { [Android.Runtime.Register("getUsage", "()J", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getUsage", "()J", "", ApiSince=37)>]
member this.Usage : int64
Property Value
The usage flag associated with this OutputConfiguration, as defined in
HardwareBuffer.
- Attributes
Remarks
Get the usage flag associated with this OutputConfiguration.
If the OutputConfiguration is created using an output surface, or using a Surface source class, this function returns the consumer usage flag of the output surface or the Surface source class.
If the OutputConfiguration is created using an Image format, this function returns the application specified usage flag. If the application doesn't specify the usage flag, the return value is 0 for ImageFormat.PRIVATE and HardwareBuffer.USAGE_CPU_READ_OFTEN for all other cases.
Android reference for android.hardware.camera2.params.OutputConfiguration.getUsage.
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.