forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobservation.gen.go
83 lines (68 loc) · 2.18 KB
/
observation.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
79
80
81
82
83
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/macos/coremedia"
"github.com/progrium/macdriver/macos/foundation"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [Observation] class.
var ObservationClass = _ObservationClass{objc.GetClass("VNObservation")}
type _ObservationClass struct {
objc.Class
}
// An interface definition for the [Observation] class.
type IObservation interface {
objc.IObject
Confidence() Confidence
TimeRange() coremedia.TimeRange
Uuid() foundation.UUID
}
// The abstract superclass for analysis results. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnobservation?language=objc
type Observation struct {
objc.Object
}
func ObservationFrom(ptr unsafe.Pointer) Observation {
return Observation{
Object: objc.ObjectFrom(ptr),
}
}
func (oc _ObservationClass) Alloc() Observation {
rv := objc.Call[Observation](oc, objc.Sel("alloc"))
return rv
}
func (oc _ObservationClass) New() Observation {
rv := objc.Call[Observation](oc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewObservation() Observation {
return ObservationClass.New()
}
func (o_ Observation) Init() Observation {
rv := objc.Call[Observation](o_, objc.Sel("init"))
return rv
}
// The level of confidence in the observation’s accuracy. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnobservation/2867220-confidence?language=objc
func (o_ Observation) Confidence() Confidence {
rv := objc.Call[Confidence](o_, objc.Sel("confidence"))
return rv
}
// The time range of the reported observation. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnobservation/3548370-timerange?language=objc
func (o_ Observation) TimeRange() coremedia.TimeRange {
rv := objc.Call[coremedia.TimeRange](o_, objc.Sel("timeRange"))
return rv
}
// A unique identifier assigned to the Vision observation. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnobservation/2879296-uuid?language=objc
func (o_ Observation) Uuid() foundation.UUID {
rv := objc.Call[foundation.UUID](o_, objc.Sel("uuid"))
return rv
}