Documentation
¶
Overview ¶
Package print provides Go bindings for android.print.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Job
- func (m *Job) Cancel() error
- func (m *Job) Equals(arg0 *jni.Object) (bool, error)
- func (m *Job) GetId() (*jni.Object, error)
- func (m *Job) GetInfo() (*jni.Object, error)
- func (m *Job) HashCode() (int32, error)
- func (m *Job) IsBlocked() (bool, error)
- func (m *Job) IsCancelled() (bool, error)
- func (m *Job) IsCompleted() (bool, error)
- func (m *Job) IsFailed() (bool, error)
- func (m *Job) IsQueued() (bool, error)
- func (m *Job) IsStarted() (bool, error)
- func (m *Job) Restart() error
- type JobInfo
- func (m *JobInfo) DescribeContents() (int32, error)
- func (m *JobInfo) GetAdvancedIntOption(arg0 string) (int32, error)
- func (m *JobInfo) GetAdvancedStringOption(arg0 string) (string, error)
- func (m *JobInfo) GetAttributes() (*jni.Object, error)
- func (m *JobInfo) GetCopies() (int32, error)
- func (m *JobInfo) GetCreationTime() (int64, error)
- func (m *JobInfo) GetId() (*jni.Object, error)
- func (m *JobInfo) GetLabel() (string, error)
- func (m *JobInfo) GetPages() (*jni.Object, error)
- func (m *JobInfo) GetPrinterId() (*jni.Object, error)
- func (m *JobInfo) GetState() (int32, error)
- func (m *JobInfo) HasAdvancedOption(arg0 string) (bool, error)
- func (m *JobInfo) ToString() (string, error)
- func (m *JobInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type Manager
Constants ¶
const ( Creator = consts.Creator StateBlocked = consts.StateBlocked StateCanceled = consts.StateCanceled StateCompleted = consts.StateCompleted StateCreated = consts.StateCreated StateFailed = consts.StateFailed StateQueued = consts.StateQueued StateStarted = consts.StateStarted )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶ added in v0.0.4
Job wraps android.print.PrintJob.
func (*Job) IsCancelled ¶ added in v0.0.4
IsCancelled calls android.print.PrintJob.isCancelled.
func (*Job) IsCompleted ¶ added in v0.0.4
IsCompleted calls android.print.PrintJob.isCompleted.
type JobInfo ¶ added in v0.0.4
JobInfo wraps android.print.PrintJobInfo.
func (*JobInfo) DescribeContents ¶ added in v0.0.4
DescribeContents calls android.print.PrintJobInfo.describeContents.
func (*JobInfo) GetAdvancedIntOption ¶ added in v0.0.4
GetAdvancedIntOption calls android.print.PrintJobInfo.getAdvancedIntOption.
func (*JobInfo) GetAdvancedStringOption ¶ added in v0.0.4
GetAdvancedStringOption calls android.print.PrintJobInfo.getAdvancedStringOption.
func (*JobInfo) GetAttributes ¶ added in v0.0.4
GetAttributes calls android.print.PrintJobInfo.getAttributes.
func (*JobInfo) GetCreationTime ¶ added in v0.0.4
GetCreationTime calls android.print.PrintJobInfo.getCreationTime.
func (*JobInfo) GetPrinterId ¶ added in v0.0.4
GetPrinterId calls android.print.PrintJobInfo.getPrinterId.
func (*JobInfo) HasAdvancedOption ¶ added in v0.0.4
HasAdvancedOption calls android.print.PrintJobInfo.hasAdvancedOption.
type Manager ¶ added in v0.0.4
Manager wraps android.print.PrintManager.
func NewManager ¶ added in v0.0.4
NewManager obtains android.print.PrintManager from the Android system service manager.
func (*Manager) Close ¶ added in v0.0.4
func (m *Manager) Close()
Close releases the global reference to the underlying Java object. After Close, the Manager must not be used.
func (*Manager) GetPrintJobs ¶ added in v0.0.4
GetPrintJobs calls android.print.PrintManager.getPrintJobs.
func (*Manager) IsPrintServiceEnabled ¶ added in v0.0.4
IsPrintServiceEnabled calls android.print.PrintManager.isPrintServiceEnabled.