Platforms to show: All Mac Windows Linux Cross-Platform

IKCameraDeviceViewMBS class

Superclass: NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Image Capture MBS AVFoundation Plugin 14.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Displays content of a Image Capture supported camera.
Example
// browse the pictures on a camera or iPhone and download selected ones
// camera is an ICCameraDeviceMBS, e.g. from ICDeviceBrowserMBS or IKDeviceBrowserViewMBS
// MyCameraView is a subclass of IKCameraDeviceViewMBS with the DidDownloadFile event implemented.
// CameraView is a property of the window: CameraView As MyCameraView
Var camera As ICCameraDeviceMBS // your camera
If camera = Nil Then Return

CameraView = New MyCameraView(0, 0, Self.Width, Self.Height)
CameraView.downloadsFolder = SpecialFolder.Pictures
CameraView.cameraDevice = camera
Self.NSWindowMBS.contentView.addSubview CameraView

// in MyCameraView:
Sub DidDownloadFile(CameraFile As ICCameraFileMBS, URL As String, File As FolderItem, data As MemoryBlock, error As NSErrorMBS) Handles DidDownloadFile
If File <> Nil Then System.DebugLog "Downloaded " + File.Name
End Sub

Subclass of the NSViewMBS class.

Display Modes

Constant Value Description
IKCameraDeviceViewDisplayModeIcon 1 Show Icons
IKCameraDeviceViewDisplayModeTable 0 Show Table

Transfer Modes

Constant Value Description
IKCameraDeviceViewTransferModeFileBased 0 File based download.
IKCameraDeviceViewTransferModeMemoryBased 1 Memory based download.

Superclass NSViewMBS

Constants

Constant Value Description
NSBezelBorder 2 One of the constants to specify the type of a view's border. A concave border that makes the view look sunken.
NSFocusRingTypeDefault 0 One of the constants for the focusringtype property. The default focus ring type for NSView or NSCell.
NSFocusRingTypeExterior 2 One of the constants for the focusringtype property. The standard Aqua focus ring.
NSFocusRingTypeNone 1 One of the constants for the focusringtype property. No focus ring. If you set the focus ring type to this value, NSView and NSCell will not draw any focus ring.
NSGrooveBorder 3 One of the constants to specify the type of a view's border. A thin border that looks etched around the image.
NSLineBorder 1 One of the constants to specify the type of a view's border. A black line border around the view.
NSNoBorder 0 One of the constants to specify the type of a view's border. No border.
NSViewHeightSizable 16 One of the constants for the autoresizingMask property. The receiver's height is flexible.
NSViewLayerContentsRedrawBeforeViewResize 3 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawDuringViewResize 2 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawNever 0 One of the view layer content redraw policy constants.
NSViewLayerContentsRedrawOnSetNeedsDisplay 1 One of the view layer content redraw policy constants.
NSViewMaxXMargin 4 One of the constants for the autoresizingMask property. The right margin between the receiver and its superview is flexible.
NSViewMaxYMargin 32 One of the constants for the autoresizingMask property. The top margin between the receiver and its superview is flexible.
NSViewMinXMargin 1 One of the constants for the autoresizingMask property. The left margin between the receiver and its superview is flexible.
NSViewMinYMargin 8 One of the constants for the autoresizingMask property. The bottom margin between the receiver and its superview is flexible.
NSViewNotSizable 0 One of the constants for the autoresizingMask property. The receiver cannot be resized.
NSViewWidthSizable 2 One of the constants for the autoresizingMask property. The receiver's width is flexible.

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Superclass NSResponderMBS

This class has no subclasses.

Blog Entries

Some properties using this class:

Some events using this class:

Some examples using this class:

Some related classes:


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


IEWindowMBS   -   IKDeviceBrowserViewMBS


The biggest plugin in space...