forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclassify_image_request.gen.go
78 lines (63 loc) · 2.6 KB
/
classify_image_request.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
68
69
70
71
72
73
74
75
76
77
78
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/macos/foundation"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [ClassifyImageRequest] class.
var ClassifyImageRequestClass = _ClassifyImageRequestClass{objc.GetClass("VNClassifyImageRequest")}
type _ClassifyImageRequestClass struct {
objc.Class
}
// An interface definition for the [ClassifyImageRequest] class.
type IClassifyImageRequest interface {
IImageBasedRequest
SupportedIdentifiersAndReturnError(error foundation.IError) []string
}
// A request to classify an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnclassifyimagerequest?language=objc
type ClassifyImageRequest struct {
ImageBasedRequest
}
func ClassifyImageRequestFrom(ptr unsafe.Pointer) ClassifyImageRequest {
return ClassifyImageRequest{
ImageBasedRequest: ImageBasedRequestFrom(ptr),
}
}
func (cc _ClassifyImageRequestClass) Alloc() ClassifyImageRequest {
rv := objc.Call[ClassifyImageRequest](cc, objc.Sel("alloc"))
return rv
}
func (cc _ClassifyImageRequestClass) New() ClassifyImageRequest {
rv := objc.Call[ClassifyImageRequest](cc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewClassifyImageRequest() ClassifyImageRequest {
return ClassifyImageRequestClass.New()
}
func (c_ ClassifyImageRequest) Init() ClassifyImageRequest {
rv := objc.Call[ClassifyImageRequest](c_, objc.Sel("init"))
return rv
}
func (c_ ClassifyImageRequest) InitWithCompletionHandler(completionHandler RequestCompletionHandler) ClassifyImageRequest {
rv := objc.Call[ClassifyImageRequest](c_, objc.Sel("initWithCompletionHandler:"), completionHandler)
return rv
}
// Creates a new Vision request with an optional completion handler. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2875416-initwithcompletionhandler?language=objc
func NewClassifyImageRequestWithCompletionHandler(completionHandler RequestCompletionHandler) ClassifyImageRequest {
instance := ClassifyImageRequestClass.Alloc().InitWithCompletionHandler(completionHandler)
instance.Autorelease()
return instance
}
// Returns the classification identifiers that the request supports in its current configuration. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnclassifyimagerequest/3750957-supportedidentifiersandreturnerr?language=objc
func (c_ ClassifyImageRequest) SupportedIdentifiersAndReturnError(error foundation.IError) []string {
rv := objc.Call[[]string](c_, objc.Sel("supportedIdentifiersAndReturnError:"), objc.Ptr(error))
return rv
}