NSFilePresenter class interface

NSFilePresenter

Implementers

Constructors

NSFilePresenter.castFrom(ObjCObjectBase other)
Constructs a NSFilePresenter that points to the same underlying object as other.
NSFilePresenter.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSFilePresenter that wraps the given raw object pointer.

Properties

hashCode → int
The hash code for this object.
no setterinherited
ref → ObjCObjectRef
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

$protocol → Protocol
Returns the objc.Protocol object for this protocol.
no setter
accommodatePresentedItemDeletionWithCompletionHandler_ → ObjCProtocolListenableMethod<void Function(ObjCBlock<Void Function(NSError?)>)>
accommodatePresentedItemDeletionWithCompletionHandler:
final
accommodatePresentedItemEvictionWithCompletionHandler_ → ObjCProtocolListenableMethod<void Function(ObjCBlock<Void Function(NSError?)>)>
accommodatePresentedItemEvictionWithCompletionHandler:
final
accommodatePresentedSubitemDeletionAtURL_completionHandler_ → ObjCProtocolListenableMethod<void Function(NSURL, ObjCBlock<Void Function(NSError?)>)>
accommodatePresentedSubitemDeletionAtURL:completionHandler:
final
observedPresentedItemUbiquityAttributes → ObjCProtocolMethod<NSSet Function()>
observedPresentedItemUbiquityAttributes
final
presentedItemDidChange → ObjCProtocolListenableMethod<void Function()>
presentedItemDidChange
final
presentedItemDidChangeUbiquityAttributes_ → ObjCProtocolListenableMethod<void Function(NSSet)>
presentedItemDidChangeUbiquityAttributes:
final
presentedItemDidGainVersion_ → ObjCProtocolListenableMethod<void Function(NSFileVersion)>
presentedItemDidGainVersion:
final
presentedItemDidLoseVersion_ → ObjCProtocolListenableMethod<void Function(NSFileVersion)>
presentedItemDidLoseVersion:
final
presentedItemDidMoveToURL_ → ObjCProtocolListenableMethod<void Function(NSURL sender)>
presentedItemDidMoveToURL:
final
presentedItemDidResolveConflictVersion_ → ObjCProtocolListenableMethod<void Function(NSFileVersion)>
presentedItemDidResolveConflictVersion:
final
presentedItemOperationQueue → ObjCProtocolMethod<NSOperationQueue Function()>
presentedItemOperationQueue
final
presentedItemURL → ObjCProtocolMethod<NSURL? Function()>
presentedItemURL
final
presentedSubitemAtURL_didGainVersion_ → ObjCProtocolListenableMethod<void Function(NSURL, NSFileVersion)>
presentedSubitemAtURL:didGainVersion:
final
presentedSubitemAtURL_didLoseVersion_ → ObjCProtocolListenableMethod<void Function(NSURL, NSFileVersion)>
presentedSubitemAtURL:didLoseVersion:
final
presentedSubitemAtURL_didMoveToURL_ → ObjCProtocolListenableMethod<void Function(NSURL, NSURL)>
presentedSubitemAtURL:didMoveToURL:
final
presentedSubitemAtURL_didResolveConflictVersion_ → ObjCProtocolListenableMethod<void Function(NSURL, NSFileVersion)>
presentedSubitemAtURL:didResolveConflictVersion:
final
presentedSubitemDidAppearAtURL_ → ObjCProtocolListenableMethod<void Function(NSURL sender)>
presentedSubitemDidAppearAtURL:
final
presentedSubitemDidChangeAtURL_ → ObjCProtocolListenableMethod<void Function(NSURL sender)>
presentedSubitemDidChangeAtURL:
final
primaryPresentedItemURL → ObjCProtocolMethod<NSURL? Function()>
primaryPresentedItemURL
final
relinquishPresentedItemToReader_ → ObjCProtocolListenableMethod<void Function(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)>
relinquishPresentedItemToReader:
final
relinquishPresentedItemToWriter_ → ObjCProtocolListenableMethod<void Function(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)>
relinquishPresentedItemToWriter:
final
savePresentedItemChangesWithCompletionHandler_ → ObjCProtocolListenableMethod<void Function(ObjCBlock<Void Function(NSError?)>)>
savePresentedItemChangesWithCompletionHandler:
final

Static Methods

addToBuilder(ObjCProtocolBuilder builder, {required NSURL? presentedItemURL(), required NSOperationQueue presentedItemOperationQueue(), NSURL? primaryPresentedItemURL()?, void relinquishPresentedItemToReader_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void relinquishPresentedItemToWriter_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void savePresentedItemChangesWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemDeletionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemEvictionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void presentedItemDidMoveToURL_(NSURL)?, void presentedItemDidChange()?, void presentedItemDidChangeUbiquityAttributes_(NSSet)?, NSSet observedPresentedItemUbiquityAttributes()?, void presentedItemDidGainVersion_(NSFileVersion)?, void presentedItemDidLoseVersion_(NSFileVersion)?, void presentedItemDidResolveConflictVersion_(NSFileVersion)?, void accommodatePresentedSubitemDeletionAtURL_completionHandler_(NSURL, ObjCBlock<Void Function(NSError?)>)?, void presentedSubitemDidAppearAtURL_(NSURL)?, void presentedSubitemAtURL_didMoveToURL_(NSURL, NSURL)?, void presentedSubitemDidChangeAtURL_(NSURL)?, void presentedSubitemAtURL_didGainVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didLoseVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didResolveConflictVersion_(NSURL, NSFileVersion)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSFilePresenter protocol to an existing objc.ObjCProtocolBuilder.
addToBuilderAsBlocking(ObjCProtocolBuilder builder, {required NSURL? presentedItemURL(), required NSOperationQueue presentedItemOperationQueue(), NSURL? primaryPresentedItemURL()?, void relinquishPresentedItemToReader_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void relinquishPresentedItemToWriter_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void savePresentedItemChangesWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemDeletionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemEvictionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void presentedItemDidMoveToURL_(NSURL)?, void presentedItemDidChange()?, void presentedItemDidChangeUbiquityAttributes_(NSSet)?, NSSet observedPresentedItemUbiquityAttributes()?, void presentedItemDidGainVersion_(NSFileVersion)?, void presentedItemDidLoseVersion_(NSFileVersion)?, void presentedItemDidResolveConflictVersion_(NSFileVersion)?, void accommodatePresentedSubitemDeletionAtURL_completionHandler_(NSURL, ObjCBlock<Void Function(NSError?)>)?, void presentedSubitemDidAppearAtURL_(NSURL)?, void presentedSubitemAtURL_didMoveToURL_(NSURL, NSURL)?, void presentedSubitemDidChangeAtURL_(NSURL)?, void presentedSubitemAtURL_didGainVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didLoseVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didResolveConflictVersion_(NSURL, NSFileVersion)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSFilePresenter protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be.
addToBuilderAsListener(ObjCProtocolBuilder builder, {required NSURL? presentedItemURL(), required NSOperationQueue presentedItemOperationQueue(), NSURL? primaryPresentedItemURL()?, void relinquishPresentedItemToReader_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void relinquishPresentedItemToWriter_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void savePresentedItemChangesWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemDeletionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemEvictionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void presentedItemDidMoveToURL_(NSURL)?, void presentedItemDidChange()?, void presentedItemDidChangeUbiquityAttributes_(NSSet)?, NSSet observedPresentedItemUbiquityAttributes()?, void presentedItemDidGainVersion_(NSFileVersion)?, void presentedItemDidLoseVersion_(NSFileVersion)?, void presentedItemDidResolveConflictVersion_(NSFileVersion)?, void accommodatePresentedSubitemDeletionAtURL_completionHandler_(NSURL, ObjCBlock<Void Function(NSError?)>)?, void presentedSubitemDidAppearAtURL_(NSURL)?, void presentedSubitemAtURL_didMoveToURL_(NSURL, NSURL)?, void presentedSubitemDidChangeAtURL_(NSURL)?, void presentedSubitemAtURL_didGainVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didLoseVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didResolveConflictVersion_(NSURL, NSFileVersion)?, bool $keepIsolateAlive = true}) → void
Adds the implementation of the NSFilePresenter protocol to an existing objc.ObjCProtocolBuilder. All methods that can be implemented as listeners will be.
conformsTo(ObjCObjectBase obj) → bool
Returns whether obj is an instance of NSFilePresenter.
implement({required NSURL? presentedItemURL(), required NSOperationQueue presentedItemOperationQueue(), NSURL? primaryPresentedItemURL()?, void relinquishPresentedItemToReader_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void relinquishPresentedItemToWriter_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void savePresentedItemChangesWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemDeletionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemEvictionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void presentedItemDidMoveToURL_(NSURL)?, void presentedItemDidChange()?, void presentedItemDidChangeUbiquityAttributes_(NSSet)?, NSSet observedPresentedItemUbiquityAttributes()?, void presentedItemDidGainVersion_(NSFileVersion)?, void presentedItemDidLoseVersion_(NSFileVersion)?, void presentedItemDidResolveConflictVersion_(NSFileVersion)?, void accommodatePresentedSubitemDeletionAtURL_completionHandler_(NSURL, ObjCBlock<Void Function(NSError?)>)?, void presentedSubitemDidAppearAtURL_(NSURL)?, void presentedSubitemAtURL_didMoveToURL_(NSURL, NSURL)?, void presentedSubitemDidChangeAtURL_(NSURL)?, void presentedSubitemAtURL_didGainVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didLoseVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didResolveConflictVersion_(NSURL, NSFileVersion)?, bool $keepIsolateAlive = true}) → NSFilePresenter
Builds an object that implements the NSFilePresenter protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly.
implementAsBlocking({required NSURL? presentedItemURL(), required NSOperationQueue presentedItemOperationQueue(), NSURL? primaryPresentedItemURL()?, void relinquishPresentedItemToReader_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void relinquishPresentedItemToWriter_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void savePresentedItemChangesWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemDeletionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemEvictionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void presentedItemDidMoveToURL_(NSURL)?, void presentedItemDidChange()?, void presentedItemDidChangeUbiquityAttributes_(NSSet)?, NSSet observedPresentedItemUbiquityAttributes()?, void presentedItemDidGainVersion_(NSFileVersion)?, void presentedItemDidLoseVersion_(NSFileVersion)?, void presentedItemDidResolveConflictVersion_(NSFileVersion)?, void accommodatePresentedSubitemDeletionAtURL_completionHandler_(NSURL, ObjCBlock<Void Function(NSError?)>)?, void presentedSubitemDidAppearAtURL_(NSURL)?, void presentedSubitemAtURL_didMoveToURL_(NSURL, NSURL)?, void presentedSubitemDidChangeAtURL_(NSURL)?, void presentedSubitemAtURL_didGainVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didLoseVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didResolveConflictVersion_(NSURL, NSFileVersion)?, bool $keepIsolateAlive = true}) → NSFilePresenter
Builds an object that implements the NSFilePresenter protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as blocking listeners will be.
implementAsListener({required NSURL? presentedItemURL(), required NSOperationQueue presentedItemOperationQueue(), NSURL? primaryPresentedItemURL()?, void relinquishPresentedItemToReader_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void relinquishPresentedItemToWriter_(ObjCBlock<Void Function(ObjCBlock<Void Function()>?)>)?, void savePresentedItemChangesWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemDeletionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void accommodatePresentedItemEvictionWithCompletionHandler_(ObjCBlock<Void Function(NSError?)>)?, void presentedItemDidMoveToURL_(NSURL)?, void presentedItemDidChange()?, void presentedItemDidChangeUbiquityAttributes_(NSSet)?, NSSet observedPresentedItemUbiquityAttributes()?, void presentedItemDidGainVersion_(NSFileVersion)?, void presentedItemDidLoseVersion_(NSFileVersion)?, void presentedItemDidResolveConflictVersion_(NSFileVersion)?, void accommodatePresentedSubitemDeletionAtURL_completionHandler_(NSURL, ObjCBlock<Void Function(NSError?)>)?, void presentedSubitemDidAppearAtURL_(NSURL)?, void presentedSubitemAtURL_didMoveToURL_(NSURL, NSURL)?, void presentedSubitemDidChangeAtURL_(NSURL)?, void presentedSubitemAtURL_didGainVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didLoseVersion_(NSURL, NSFileVersion)?, void presentedSubitemAtURL_didResolveConflictVersion_(NSURL, NSFileVersion)?, bool $keepIsolateAlive = true}) → NSFilePresenter
Builds an object that implements the NSFilePresenter protocol. To implement multiple protocols, use addToBuilder or objc.ObjCProtocolBuilder directly. All methods that can be implemented as listeners will be.