-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbacknavigationinfo.go
More file actions
47 lines (41 loc) · 1.04 KB
/
backnavigationinfo.go
File metadata and controls
47 lines (41 loc) · 1.04 KB
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
package window
import (
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type BackNavigationInfo struct {
Type int32
PrepareRemoteAnimation bool
AnimationCallback bool
}
var _ parcel.Parcelable = (*BackNavigationInfo)(nil)
func (s *BackNavigationInfo) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteInt32(s.Type)
p.WriteInt32(0) // null OnBackNavigationDone
p.WriteInt32(-1) // null OnBackInvokedCallback
p.WriteBool(s.PrepareRemoteAnimation)
p.WriteBool(s.AnimationCallback)
p.WriteInt32(0) // null CustomAnimationInfo
return nil
}
func (s *BackNavigationInfo) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.Type, _err = p.ReadInt32()
if _err != nil {
return _err
}
{
_opaqueFlag, _opaqueErr := p.ReadInt32()
if _opaqueErr != nil {
return _opaqueErr
}
if _opaqueFlag != 0 {
return nil // non-null OnBackNavigationDone: cannot skip unknown-size typed object
}
}
return nil // opaque OnBackInvokedCallback: cannot skip without known wire format
}