forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest_progress_providing_protocol.gen.go
67 lines (54 loc) · 2.4 KB
/
request_progress_providing_protocol.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"github.com/progrium/macdriver/objc"
)
// A protocol for providing progress information on long-running tasks in Vision. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestprogressproviding?language=objc
type PRequestProgressProviding interface {
// optional
SetProgressHandler(value RequestProgressHandler)
HasSetProgressHandler() bool
// optional
ProgressHandler() RequestProgressHandler
HasProgressHandler() bool
// optional
Indeterminate() bool
HasIndeterminate() bool
}
// ensure impl type implements protocol interface
var _ PRequestProgressProviding = (*RequestProgressProvidingObject)(nil)
// A concrete type for the [PRequestProgressProviding] protocol.
type RequestProgressProvidingObject struct {
objc.Object
}
func (r_ RequestProgressProvidingObject) HasSetProgressHandler() bool {
return r_.RespondsToSelector(objc.Sel("setProgressHandler:"))
}
// A block of code executed periodically during a Vision request to report progress on long-running tasks. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestprogressproviding/3152652-progresshandler?language=objc
func (r_ RequestProgressProvidingObject) SetProgressHandler(value RequestProgressHandler) {
objc.Call[objc.Void](r_, objc.Sel("setProgressHandler:"), value)
}
func (r_ RequestProgressProvidingObject) HasProgressHandler() bool {
return r_.RespondsToSelector(objc.Sel("progressHandler"))
}
// A block of code executed periodically during a Vision request to report progress on long-running tasks. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestprogressproviding/3152652-progresshandler?language=objc
func (r_ RequestProgressProvidingObject) ProgressHandler() RequestProgressHandler {
rv := objc.Call[RequestProgressHandler](r_, objc.Sel("progressHandler"))
return rv
}
func (r_ RequestProgressProvidingObject) HasIndeterminate() bool {
return r_.RespondsToSelector(objc.Sel("indeterminate"))
}
// A Boolean set to true when a request can't determine its progress in fractions completed. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestprogressproviding/3152651-indeterminate?language=objc
func (r_ RequestProgressProvidingObject) Indeterminate() bool {
rv := objc.Call[bool](r_, objc.Sel("indeterminate"))
return rv
}