mbms

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mbms provides Go bindings for android.telephony.mbms.

Index

Constants

View Source
const (
	SignalStrengthUnavailable             = consts.SignalStrengthUnavailable
	Creator                               = consts.Creator
	ReasonByUserRequest                   = consts.ReasonByUserRequest
	ReasonFrequencyConflict               = consts.ReasonFrequencyConflict
	ReasonLeftMbmsBroadcastArea           = consts.ReasonLeftMbmsBroadcastArea
	ReasonNone                            = consts.ReasonNone
	ReasonNotConnectedToHomecarrierLte    = consts.ReasonNotConnectedToHomecarrierLte
	ReasonOutOfMemory                     = consts.ReasonOutOfMemory
	StateStalled                          = consts.StateStalled
	StateStarted                          = consts.StateStarted
	StateStopped                          = consts.StateStopped
	ErrorMiddlewareLost                   = consts.ErrorMiddlewareLost
	ErrorMiddlewareNotBound               = consts.ErrorMiddlewareNotBound
	ErrorNoUniqueMiddleware               = consts.ErrorNoUniqueMiddleware
	Success                               = consts.Success
	Unknown                               = consts.Unknown
	ErrorCannotChangeTempFileRoot         = consts.ErrorCannotChangeTempFileRoot
	ErrorMalformedServiceAnnouncement     = consts.ErrorMalformedServiceAnnouncement
	ErrorUnknownDownloadRequest           = consts.ErrorUnknownDownloadRequest
	ErrorUnknownFileInfo                  = consts.ErrorUnknownFileInfo
	ErrorCarrierChangeNotAllowed          = consts.ErrorCarrierChangeNotAllowed
	ErrorInE911                           = consts.ErrorInE911
	ErrorMiddlewareNotYetReady            = consts.ErrorMiddlewareNotYetReady
	ErrorMiddlewareTemporarilyUnavailable = consts.ErrorMiddlewareTemporarilyUnavailable
	ErrorNotConnectedToHomeCarrierLte     = consts.ErrorNotConnectedToHomeCarrierLte
	ErrorOutOfMemory                      = consts.ErrorOutOfMemory
	ErrorUnableToReadSim                  = consts.ErrorUnableToReadSim
	ErrorDuplicateStartGroupCall          = consts.ErrorDuplicateStartGroupCall
	ErrorUnableToStartService             = consts.ErrorUnableToStartService
	ErrorAppPermissionsNotGranted         = consts.ErrorAppPermissionsNotGranted
	ErrorDuplicateInitialize              = consts.ErrorDuplicateInitialize
	ErrorUnableToInitialize               = consts.ErrorUnableToInitialize
	ErrorConcurrentServiceLimitReached    = consts.ErrorConcurrentServiceLimitReached
	ErrorDuplicateStartStream             = consts.ErrorDuplicateStartStream
	BroadcastMethod                       = consts.BroadcastMethod
	ReasonEndOfSession                    = consts.ReasonEndOfSession
	UnicastMethod                         = consts.UnicastMethod
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type DownloadProgressListener

type DownloadProgressListener struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DownloadProgressListener wraps android.telephony.mbms.DownloadProgressListener.

func NewDownloadProgressListener

func NewDownloadProgressListener(vm *jni.VM) (*DownloadProgressListener, error)

NewDownloadProgressListener creates a new android.telephony.mbms.DownloadProgressListener instance.

func (*DownloadProgressListener) OnProgressUpdated

func (m *DownloadProgressListener) OnProgressUpdated(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
	arg3 int32,
	arg4 int32,
	arg5 int32,
) error

OnProgressUpdated calls android.telephony.mbms.DownloadProgressListener.onProgressUpdated.

type DownloadReceiver

type DownloadReceiver struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DownloadReceiver wraps android.telephony.mbms.MbmsDownloadReceiver.

func NewDownloadReceiver

func NewDownloadReceiver(vm *jni.VM) (*DownloadReceiver, error)

NewDownloadReceiver creates a new android.telephony.mbms.MbmsDownloadReceiver instance.

func (*DownloadReceiver) OnReceive

func (m *DownloadReceiver) OnReceive(arg0 *jni.Object, arg1 *jni.Object) error

OnReceive calls android.telephony.mbms.MbmsDownloadReceiver.onReceive.

type DownloadRequest

type DownloadRequest struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DownloadRequest wraps android.telephony.mbms.DownloadRequest.

func (*DownloadRequest) DescribeContents

func (m *DownloadRequest) DescribeContents() (int32, error)

DescribeContents calls android.telephony.mbms.DownloadRequest.describeContents.

func (*DownloadRequest) Equals

func (m *DownloadRequest) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.telephony.mbms.DownloadRequest.equals.

func (*DownloadRequest) GetDestinationUri

func (m *DownloadRequest) GetDestinationUri() (*jni.Object, error)

GetDestinationUri calls android.telephony.mbms.DownloadRequest.getDestinationUri.

func (*DownloadRequest) GetFileServiceId

func (m *DownloadRequest) GetFileServiceId() (string, error)

GetFileServiceId calls android.telephony.mbms.DownloadRequest.getFileServiceId.

func (*DownloadRequest) GetMaxAppIntentSize

func (m *DownloadRequest) GetMaxAppIntentSize() (int32, error)

GetMaxAppIntentSize calls android.telephony.mbms.DownloadRequest.getMaxAppIntentSize.

func (*DownloadRequest) GetMaxDestinationUriSize

func (m *DownloadRequest) GetMaxDestinationUriSize() (int32, error)

GetMaxDestinationUriSize calls android.telephony.mbms.DownloadRequest.getMaxDestinationUriSize.

func (*DownloadRequest) GetSourceUri

func (m *DownloadRequest) GetSourceUri() (*jni.Object, error)

GetSourceUri calls android.telephony.mbms.DownloadRequest.getSourceUri.

func (*DownloadRequest) GetSubscriptionId

func (m *DownloadRequest) GetSubscriptionId() (int32, error)

GetSubscriptionId calls android.telephony.mbms.DownloadRequest.getSubscriptionId.

func (*DownloadRequest) HashCode

func (m *DownloadRequest) HashCode() (int32, error)

HashCode calls android.telephony.mbms.DownloadRequest.hashCode.

func (*DownloadRequest) ToByteArray

func (m *DownloadRequest) ToByteArray() (*jni.Object, error)

ToByteArray calls android.telephony.mbms.DownloadRequest.toByteArray.

func (*DownloadRequest) WriteToParcel

func (m *DownloadRequest) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.telephony.mbms.DownloadRequest.writeToParcel.

type DownloadRequestBuilder

type DownloadRequestBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DownloadRequestBuilder wraps android.telephony.mbms.DownloadRequest$Builder.

func (*DownloadRequestBuilder) Build

func (m *DownloadRequestBuilder) Build() (*jni.Object, error)

Build calls android.telephony.mbms.DownloadRequest$Builder.build.

func (*DownloadRequestBuilder) FromDownloadRequest

func (m *DownloadRequestBuilder) FromDownloadRequest(arg0 *jni.Object) (*jni.Object, error)

FromDownloadRequest calls android.telephony.mbms.DownloadRequest$Builder.fromDownloadRequest.

func (*DownloadRequestBuilder) FromSerializedRequest

func (m *DownloadRequestBuilder) FromSerializedRequest(arg0 *jni.Object) (*jni.Object, error)

FromSerializedRequest calls android.telephony.mbms.DownloadRequest$Builder.fromSerializedRequest.

func (*DownloadRequestBuilder) SetAppIntent

func (m *DownloadRequestBuilder) SetAppIntent(arg0 *jni.Object) (*jni.Object, error)

SetAppIntent calls android.telephony.mbms.DownloadRequest$Builder.setAppIntent.

func (*DownloadRequestBuilder) SetServiceInfo

func (m *DownloadRequestBuilder) SetServiceInfo(arg0 *jni.Object) (*jni.Object, error)

SetServiceInfo calls android.telephony.mbms.DownloadRequest$Builder.setServiceInfo.

func (*DownloadRequestBuilder) SetSubscriptionId

func (m *DownloadRequestBuilder) SetSubscriptionId(arg0 int32) (*jni.Object, error)

SetSubscriptionId calls android.telephony.mbms.DownloadRequest$Builder.setSubscriptionId.

type DownloadSessionCallback

type DownloadSessionCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DownloadSessionCallback wraps android.telephony.mbms.MbmsDownloadSessionCallback.

func NewDownloadSessionCallback

func NewDownloadSessionCallback(vm *jni.VM) (*DownloadSessionCallback, error)

NewDownloadSessionCallback creates a new android.telephony.mbms.MbmsDownloadSessionCallback instance.

func (*DownloadSessionCallback) OnError

func (m *DownloadSessionCallback) OnError(arg0 int32, arg1 string) error

OnError calls android.telephony.mbms.MbmsDownloadSessionCallback.onError.

func (*DownloadSessionCallback) OnMiddlewareReady

func (m *DownloadSessionCallback) OnMiddlewareReady() error

OnMiddlewareReady calls android.telephony.mbms.MbmsDownloadSessionCallback.onMiddlewareReady.

type DownloadStatusListener

type DownloadStatusListener struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DownloadStatusListener wraps android.telephony.mbms.DownloadStatusListener.

func NewDownloadStatusListener

func NewDownloadStatusListener(vm *jni.VM) (*DownloadStatusListener, error)

NewDownloadStatusListener creates a new android.telephony.mbms.DownloadStatusListener instance.

func (*DownloadStatusListener) OnStatusUpdated

func (m *DownloadStatusListener) OnStatusUpdated(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 int32,
) error

OnStatusUpdated calls android.telephony.mbms.DownloadStatusListener.onStatusUpdated.

type FileInfo

type FileInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

FileInfo wraps android.telephony.mbms.FileInfo.

func (*FileInfo) DescribeContents

func (m *FileInfo) DescribeContents() (int32, error)

DescribeContents calls android.telephony.mbms.FileInfo.describeContents.

func (*FileInfo) Equals

func (m *FileInfo) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.telephony.mbms.FileInfo.equals.

func (*FileInfo) GetMimeType

func (m *FileInfo) GetMimeType() (string, error)

GetMimeType calls android.telephony.mbms.FileInfo.getMimeType.

func (*FileInfo) GetUri

func (m *FileInfo) GetUri() (*jni.Object, error)

GetUri calls android.telephony.mbms.FileInfo.getUri.

func (*FileInfo) HashCode

func (m *FileInfo) HashCode() (int32, error)

HashCode calls android.telephony.mbms.FileInfo.hashCode.

func (*FileInfo) WriteToParcel

func (m *FileInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.telephony.mbms.FileInfo.writeToParcel.

type FileServiceInfo

type FileServiceInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

FileServiceInfo wraps android.telephony.mbms.FileServiceInfo.

func (*FileServiceInfo) DescribeContents

func (m *FileServiceInfo) DescribeContents() (int32, error)

DescribeContents calls android.telephony.mbms.FileServiceInfo.describeContents.

func (*FileServiceInfo) WriteToParcel

func (m *FileServiceInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.telephony.mbms.FileServiceInfo.writeToParcel.

type GroupCall

type GroupCall struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

GroupCall wraps android.telephony.mbms.GroupCall.

func (*GroupCall) Close

func (m *GroupCall) Close() error

Close calls android.telephony.mbms.GroupCall.close.

func (*GroupCall) GetTmgi

func (m *GroupCall) GetTmgi() (int64, error)

GetTmgi calls android.telephony.mbms.GroupCall.getTmgi.

type ServiceInfo

type ServiceInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ServiceInfo wraps android.telephony.mbms.ServiceInfo.

func (*ServiceInfo) Equals

func (m *ServiceInfo) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.telephony.mbms.ServiceInfo.equals.

func (*ServiceInfo) GetNameForLocale

func (m *ServiceInfo) GetNameForLocale(arg0 *jni.Object) (*jni.Object, error)

GetNameForLocale calls android.telephony.mbms.ServiceInfo.getNameForLocale.

func (*ServiceInfo) GetServiceClassName

func (m *ServiceInfo) GetServiceClassName() (string, error)

GetServiceClassName calls android.telephony.mbms.ServiceInfo.getServiceClassName.

func (*ServiceInfo) GetServiceId

func (m *ServiceInfo) GetServiceId() (string, error)

GetServiceId calls android.telephony.mbms.ServiceInfo.getServiceId.

func (*ServiceInfo) GetSessionEndTime

func (m *ServiceInfo) GetSessionEndTime() (*jni.Object, error)

GetSessionEndTime calls android.telephony.mbms.ServiceInfo.getSessionEndTime.

func (*ServiceInfo) GetSessionStartTime

func (m *ServiceInfo) GetSessionStartTime() (*jni.Object, error)

GetSessionStartTime calls android.telephony.mbms.ServiceInfo.getSessionStartTime.

func (*ServiceInfo) HashCode

func (m *ServiceInfo) HashCode() (int32, error)

HashCode calls android.telephony.mbms.ServiceInfo.hashCode.

type StreamingService

type StreamingService struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

StreamingService wraps android.telephony.mbms.StreamingService.

func (*StreamingService) Close

func (m *StreamingService) Close() error

Close calls android.telephony.mbms.StreamingService.close.

func (*StreamingService) GetInfo

func (m *StreamingService) GetInfo() (*jni.Object, error)

GetInfo calls android.telephony.mbms.StreamingService.getInfo.

func (*StreamingService) GetPlaybackUri

func (m *StreamingService) GetPlaybackUri() (*jni.Object, error)

GetPlaybackUri calls android.telephony.mbms.StreamingService.getPlaybackUri.

type StreamingServiceCallback

type StreamingServiceCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

StreamingServiceCallback wraps android.telephony.mbms.StreamingServiceCallback.

func NewStreamingServiceCallback

func NewStreamingServiceCallback(vm *jni.VM) (*StreamingServiceCallback, error)

NewStreamingServiceCallback creates a new android.telephony.mbms.StreamingServiceCallback instance.

func (*StreamingServiceCallback) OnBroadcastSignalStrengthUpdated

func (m *StreamingServiceCallback) OnBroadcastSignalStrengthUpdated(arg0 int32) error

OnBroadcastSignalStrengthUpdated calls android.telephony.mbms.StreamingServiceCallback.onBroadcastSignalStrengthUpdated.

func (*StreamingServiceCallback) OnError

func (m *StreamingServiceCallback) OnError(arg0 int32, arg1 string) error

OnError calls android.telephony.mbms.StreamingServiceCallback.onError.

func (*StreamingServiceCallback) OnMediaDescriptionUpdated

func (m *StreamingServiceCallback) OnMediaDescriptionUpdated() error

OnMediaDescriptionUpdated calls android.telephony.mbms.StreamingServiceCallback.onMediaDescriptionUpdated.

func (*StreamingServiceCallback) OnStreamMethodUpdated

func (m *StreamingServiceCallback) OnStreamMethodUpdated(arg0 int32) error

OnStreamMethodUpdated calls android.telephony.mbms.StreamingServiceCallback.onStreamMethodUpdated.

func (*StreamingServiceCallback) OnStreamStateUpdated

func (m *StreamingServiceCallback) OnStreamStateUpdated(arg0 int32, arg1 int32) error

OnStreamStateUpdated calls android.telephony.mbms.StreamingServiceCallback.onStreamStateUpdated.

type StreamingServiceInfo

type StreamingServiceInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

StreamingServiceInfo wraps android.telephony.mbms.StreamingServiceInfo.

func (*StreamingServiceInfo) DescribeContents

func (m *StreamingServiceInfo) DescribeContents() (int32, error)

DescribeContents calls android.telephony.mbms.StreamingServiceInfo.describeContents.

func (*StreamingServiceInfo) WriteToParcel

func (m *StreamingServiceInfo) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.telephony.mbms.StreamingServiceInfo.writeToParcel.

type StreamingSessionCallback

type StreamingSessionCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

StreamingSessionCallback wraps android.telephony.mbms.MbmsStreamingSessionCallback.

func NewStreamingSessionCallback

func NewStreamingSessionCallback(vm *jni.VM) (*StreamingSessionCallback, error)

NewStreamingSessionCallback creates a new android.telephony.mbms.MbmsStreamingSessionCallback instance.

func (*StreamingSessionCallback) OnError

func (m *StreamingSessionCallback) OnError(arg0 int32, arg1 string) error

OnError calls android.telephony.mbms.MbmsStreamingSessionCallback.onError.

func (*StreamingSessionCallback) OnMiddlewareReady

func (m *StreamingSessionCallback) OnMiddlewareReady() error

OnMiddlewareReady calls android.telephony.mbms.MbmsStreamingSessionCallback.onMiddlewareReady.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL