Mac Developer Library

Developer

Quartz Framework Reference IKCameraDeviceView Class Reference

Options
Deployment Target:

On This Page
Language:

IKCameraDeviceView

The IKCameraDeviceView class displays the contents of the selected camera.

Inheritance


Import Statement


Swift

import Quartz

Objective-C

@import Quartz;

Availability


Available in OS X v10.6 and later.
  • The current camera device.

    Declaration

    Swift

    unowned(unsafe) var cameraDevice: ICCameraDevice!

    Objective-C

    @property(assign) ICCameraDevice *cameraDevice

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • iconSize iconSize Property

    Specifies the icon size.

    Declaration

    Swift

    var iconSize: Int

    Objective-C

    @property NSUInteger iconSize

    Discussion

    The icon is square, so only a single dimension is required.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • mode mode Property

    Specifies the display mode of the camera device view.

    Declaration

    Objective-C

    @property IKCameraDeviceViewDisplayMode mode

    Discussion

    The possible values are listed in Camera View Display Modes

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the device view is being displayed in icon mode.

    Declaration

    Swift

    var hasDisplayModeIcon: Bool

    Objective-C

    @property BOOL hasDisplayModeIcon

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the device view is being displayed in table mode.

    Declaration

    Swift

    var hasDisplayModeTable: Bool

    Objective-C

    @property BOOL hasDisplayModeTable

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the selected items can be downloaded (read-only)

    Declaration

    Swift

    var canDownloadSelectedItems: Bool { get }

    Objective-C

    @property(readonly) BOOL canDownloadSelectedItems

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Specifies the directory where files are downloaded

    Declaration

    Swift

    var downloadsDirectory: NSURL!

    Objective-C

    @property(retain) NSURL *downloadsDirectory

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Deletes the selected items from the camera.

    Declaration

    Swift

    @IBAction func downloadSelectedItems(_ sender: AnyObject!)

    Objective-C

    - (IBAction)downloadSelectedItems:(id)sender

    Parameters

    sender

    The object that sent the message.

    Discussion

    This method is can be connected to a user interface item in Interface Builder.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Downloads all the items.

    Declaration

    Swift

    @IBAction func downloadAllItems(_ sender: AnyObject!)

    Objective-C

    - (IBAction)downloadAllItems:(id)sender

    Parameters

    sender

    The object that sent the message.

    Discussion

    This method is can be connected to a user interface item in Interface Builder.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Allows the “Download Selected” control to be renamed.

    Declaration

    Swift

    var downloadSelectedControlLabel: String!

    Objective-C

    @property(copy) NSString *downloadSelectedControlLabel

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Allows the “Download All” control to be renamed.

    Declaration

    Swift

    var downloadAllControlLabel: String!

    Objective-C

    @property(copy) NSString *downloadAllControlLabel

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Specifies whether the downloads directory control should be displayed.

    Declaration

    Swift

    var displaysDownloadsDirectoryControl: Bool

    Objective-C

    @property BOOL displaysDownloadsDirectoryControl

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the selected items can be deleted. (read-only)

    Declaration

    Swift

    var canDeleteSelectedItems: Bool { get }

    Objective-C

    @property(readonly) BOOL canDeleteSelectedItems

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Deletes the currently selected items.

    Declaration

    Swift

    @IBAction func deleteSelectedItems(_ sender: AnyObject!)

    Objective-C

    - (IBAction)deleteSelectedItems:(id)sender

    Parameters

    sender

    The object that sent the message.

    Discussion

    This method is can be connected to a user interface item in Interface Builder.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Invoked to select the specified files, extending the selection if specified.

    Declaration

    Swift

    func selectIndexes(_ indexes: NSIndexSet!, byExtendingSelection extend: Bool)

    Objective-C

    - (void)selectIndexes:(NSIndexSet *)indexes byExtendingSelection:(BOOL)extend

    Parameters

    indexes

    The indexes of the files to select.

    extend

    YEStrue if the selection should be extended, otherwise NOfalse.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • The selected indexes of the camera files.

    Declaration

    Swift

    func selectedIndexes() -> NSIndexSet!

    Objective-C

    - (NSIndexSet *)selectedIndexes

    Return Value

    The indexes of the selected files.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the selected items can be rotated left. (read-only)

    Declaration

    Swift

    var canRotateSelectedItemsLeft: Bool { get }

    Objective-C

    @property(readonly) BOOL canRotateSelectedItemsLeft

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Returns whether the selected items can be rotated right. (read-only)

    Declaration

    Swift

    var canRotateSelectedItemsRight: Bool { get }

    Objective-C

    @property(readonly) BOOL canRotateSelectedItemsRight

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Rotates the selected image to the left.

    Declaration

    Swift

    @IBAction func rotateLeft(_ sender: AnyObject!)

    Objective-C

    - (IBAction)rotateLeft:(id)sender

    Parameters

    sender

    The object that sent the message.

    Discussion

    This method is can be connected to a user interface item in Interface Builder.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • Rotates the selected image to the right.

    Declaration

    Swift

    @IBAction func rotateRight(_ sender: AnyObject!)

    Objective-C

    - (IBAction)rotateRight:(id)sender

    Parameters

    sender

    The object that sent the message.

    Discussion

    This method is can be connected to a user interface item in Interface Builder.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • These constants specify the display mode used by the camera view. These constants are used by mode.

    Declaration

    Swift

    enum IKCameraDeviceViewDisplayMode : Int { case Table case Icon }

    Objective-C

    enum { IKCameraDeviceViewDisplayModeTable = 0, IKCameraDeviceViewDisplayModeIcon }; typedef NSInteger IKCameraDeviceViewDisplayMode;

    Constants

    • Table

      IKCameraDeviceViewDisplayModeTable

      Display the devices in as a table.

      Available in OS X v10.6 and later.

    • Icon

      IKCameraDeviceViewDisplayModeIcon

      Display the devices as icons.

      Available in OS X v10.6 and later.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.

  • These constants specify the transfer mode used by the camera view. These constants are used by mode.

    Declaration

    Swift

    enum IKCameraDeviceViewTransferMode : Int { case FileBased case MemoryBased }

    Objective-C

    enum { IKCameraDeviceViewTransferModeFileBased = 0, IKCameraDeviceViewTransferModeMemoryBased }; typedef NSInteger IKCameraDeviceViewTransferMode;

    Constants

    • FileBased

      IKCameraDeviceViewTransferModeFileBased

      Transferred files will be saved to disk by the delegate.

      Available in OS X v10.6 and later.

    • MemoryBased

      IKCameraDeviceViewTransferModeMemoryBased

      Transferred files will be supplied to the delegate as an NSData object.

      Available in OS X v10.6 and later.

    Import Statement

    Objective-C

    @import Quartz;

    Swift

    import Quartz

    Availability

    Available in OS X v10.6 and later.