Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVCaptureMetadataOutputMBS class.

AVCaptureMetadataOutputMBS.availableMetadataObjectTypes as string()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 21.2 ❌ No ❌ No ❌ No ✅ Yes iOS only
An array of strings identifying the types of metadata objects that can be captured.

Each string in the array corresponds to a possible value in the type property of the AVMetadataObjectMBS objects reported by the receiver. The available types are dependent on the capabilities of the AVCaptureInputPortMBS to which the receiver’s connection is attached.

Some examples using this method:

AVCaptureMetadataOutputMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 21.2 ❌ No ❌ No ❌ No ✅ Yes iOS only
The constructor.

AVCaptureMetadataOutputMBS.EnableEvents

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 21.2 ❌ No ❌ No ❌ No ✅ Yes iOS only
Enables events, if you use addHandler to connect them.

AVCaptureMetadataOutputMBS.metadataObjectTypes as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 21.2 ❌ No ❌ No ❌ No ✅ Yes iOS only
An array of strings identifying the types of metadata objects to process.

This property is used to filter the metadata objects reported by the receiver. Only metadata objects whose type matches one of the strings in this property are forwarded to the captureOutput:didOutputMetadataObjects event for processing.

When assigning a new array to this property, each of the type strings must be present in the array returned by the availableMetadataObjectTypes property; otherwise, the receiver raises an NSExceptionMBS.
The default is an empty array, and as a result, no metadata objects are forwarded to the event. The same result can be achieved by setting the property to nil. This default behavior maximizes both performance and battery life.

AVCaptureMetadataOutputMBS.SetMetadataObjectTypes(items() as String = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 21.2 ❌ No ❌ No ❌ No ✅ Yes iOS only
Sets the array of strings identifying the types of metadata objects to process.
Example
Dim o As New AVCaptureMetadataOutputMBS
Dim types() As String

Dim availableTypes() As String = o.availableMetadataObjectTypes

// check if we can do EAN 13 and then add it
If availableTypes.IndexOf(AVMetadataObjectMBS.AVMetadataObjectTypeEAN13Code) >= 0 Then
types.append(AVMetadataObjectMBS.AVMetadataObjectTypeEAN13Code)
End If

o.SetMetadataObjectTypes types

This property is used to filter the metadata objects reported by the receiver. Only metadata objects whose type matches one of the strings in this property are forwarded to the captureOutput:didOutputMetadataObjects event for processing.

When assigning a new array to this property, each of the type strings must be present in the array returned by the availableMetadataObjectTypes property; otherwise, the receiver raises an NSExceptionMBS.
The default is an empty array, and as a result, no metadata objects are forwarded to the event. The same result can be achieved by setting the property to nil. This default behavior maximizes both performance and battery life.

Some examples using this method:

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...