Documentation
¶
Overview ¶
Package gsm provides Go bindings for android.telephony.gsm.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type CellLocation
- func (m *CellLocation) Equals(arg0 *jni.Object) (bool, error)
- func (m *CellLocation) FillInNotifierBundle(arg0 *jni.Object) error
- func (m *CellLocation) GetCid() (int32, error)
- func (m *CellLocation) GetLac() (int32, error)
- func (m *CellLocation) GetPsc() (int32, error)
- func (m *CellLocation) HashCode() (int32, error)
- func (m *CellLocation) SetLacAndCid(arg0 int32, arg1 int32) error
- func (m *CellLocation) SetStateInvalid() error
- func (m *CellLocation) ToString() (string, error)
- type SmsManager
- type SmsMessage
- func (m *SmsMessage) CalculateLength2(arg0 string, arg1 bool) (*jni.Object, error)
- func (m *SmsMessage) CalculateLength2_1(arg0 string, arg1 bool) (*jni.Object, error)
- func (m *SmsMessage) CreateFromPdu(arg0 *jni.Object) (*jni.Object, error)
- func (m *SmsMessage) GetDisplayMessageBody() (string, error)
- func (m *SmsMessage) GetDisplayOriginatingAddress() (string, error)
- func (m *SmsMessage) GetEmailBody() (string, error)
- func (m *SmsMessage) GetEmailFrom() (string, error)
- func (m *SmsMessage) GetIndexOnSim() (int32, error)
- func (m *SmsMessage) GetMessageBody() (string, error)
- func (m *SmsMessage) GetMessageClass() (*jni.Object, error)
- func (m *SmsMessage) GetOriginatingAddress() (string, error)
- func (m *SmsMessage) GetPdu() (*jni.Object, error)
- func (m *SmsMessage) GetProtocolIdentifier() (int32, error)
- func (m *SmsMessage) GetPseudoSubject() (string, error)
- func (m *SmsMessage) GetServiceCenterAddress() (string, error)
- func (m *SmsMessage) GetStatus() (int32, error)
- func (m *SmsMessage) GetStatusOnSim() (int32, error)
- func (m *SmsMessage) GetSubmitPdu4(arg0 string, arg1 string, arg2 string, arg3 bool) (*jni.Object, error)
- func (m *SmsMessage) GetSubmitPdu5_1(arg0 string, arg1 string, arg2 int16, arg3 *jni.Object, arg4 bool) (*jni.Object, error)
- func (m *SmsMessage) GetTPLayerLengthForPDU(arg0 string) (int32, error)
- func (m *SmsMessage) GetTimestampMillis() (int64, error)
- func (m *SmsMessage) GetUserData() (*jni.Object, error)
- func (m *SmsMessage) IsCphsMwiMessage() (bool, error)
- func (m *SmsMessage) IsEmail() (bool, error)
- func (m *SmsMessage) IsMWIClearMessage() (bool, error)
- func (m *SmsMessage) IsMWISetMessage() (bool, error)
- func (m *SmsMessage) IsMwiDontStore() (bool, error)
- func (m *SmsMessage) IsReplace() (bool, error)
- func (m *SmsMessage) IsReplyPathPresent() (bool, error)
- func (m *SmsMessage) IsStatusReportMessage() (bool, error)
- type SmsMessageMessageClass
- type SmsMessageSubmitPdu
Constants ¶
const ( Encoding16bit = consts.Encoding16bit Encoding7bit = consts.Encoding7bit Encoding8bit = consts.Encoding8bit EncodingUnknown = consts.EncodingUnknown MaxUserDataBytes = consts.MaxUserDataBytes MaxUserDataSeptets = consts.MaxUserDataSeptets MaxUserDataSeptetsWithHeader = consts.MaxUserDataSeptetsWithHeader Class0 = consts.Class0 Class1 = consts.Class1 Class2 = consts.Class2 Class3 = consts.Class3 Unknown = consts.Unknown ResultErrorGenericFailure = consts.ResultErrorGenericFailure ResultErrorNoService = consts.ResultErrorNoService ResultErrorNullPdu = consts.ResultErrorNullPdu ResultErrorRadioOff = consts.ResultErrorRadioOff StatusOnSimFree = consts.StatusOnSimFree StatusOnSimRead = consts.StatusOnSimRead StatusOnSimSent = consts.StatusOnSimSent StatusOnSimUnread = consts.StatusOnSimUnread StatusOnSimUnsent = consts.StatusOnSimUnsent )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CellLocation ¶
CellLocation wraps android.telephony.gsm.GsmCellLocation.
func NewCellLocation ¶
func NewCellLocation(vm *jni.VM) (*CellLocation, error)
NewCellLocation creates a new android.telephony.gsm.GsmCellLocation instance.
func (*CellLocation) Equals ¶
func (m *CellLocation) Equals(arg0 *jni.Object) (bool, error)
Equals calls android.telephony.gsm.GsmCellLocation.equals.
func (*CellLocation) FillInNotifierBundle ¶
func (m *CellLocation) FillInNotifierBundle(arg0 *jni.Object) error
FillInNotifierBundle calls android.telephony.gsm.GsmCellLocation.fillInNotifierBundle.
func (*CellLocation) GetCid ¶
func (m *CellLocation) GetCid() (int32, error)
GetCid calls android.telephony.gsm.GsmCellLocation.getCid.
func (*CellLocation) GetLac ¶
func (m *CellLocation) GetLac() (int32, error)
GetLac calls android.telephony.gsm.GsmCellLocation.getLac.
func (*CellLocation) GetPsc ¶
func (m *CellLocation) GetPsc() (int32, error)
GetPsc calls android.telephony.gsm.GsmCellLocation.getPsc.
func (*CellLocation) HashCode ¶
func (m *CellLocation) HashCode() (int32, error)
HashCode calls android.telephony.gsm.GsmCellLocation.hashCode.
func (*CellLocation) SetLacAndCid ¶
func (m *CellLocation) SetLacAndCid(arg0 int32, arg1 int32) error
SetLacAndCid calls android.telephony.gsm.GsmCellLocation.setLacAndCid.
func (*CellLocation) SetStateInvalid ¶
func (m *CellLocation) SetStateInvalid() error
SetStateInvalid calls android.telephony.gsm.GsmCellLocation.setStateInvalid.
func (*CellLocation) ToString ¶
func (m *CellLocation) ToString() (string, error)
ToString calls android.telephony.gsm.GsmCellLocation.toString.
type SmsManager ¶
SmsManager wraps android.telephony.gsm.SmsManager.
func (*SmsManager) GetDefault ¶
func (m *SmsManager) GetDefault() (*jni.Object, error)
GetDefault calls android.telephony.gsm.SmsManager.getDefault.
type SmsMessage ¶
SmsMessage wraps android.telephony.gsm.SmsMessage.
func NewSmsMessage ¶
func NewSmsMessage(vm *jni.VM) (*SmsMessage, error)
NewSmsMessage creates a new android.telephony.gsm.SmsMessage instance.
func (*SmsMessage) CalculateLength2 ¶
CalculateLength2 calls android.telephony.gsm.SmsMessage.calculateLength.
func (*SmsMessage) CalculateLength2_1 ¶
CalculateLength2_1 calls android.telephony.gsm.SmsMessage.calculateLength.
func (*SmsMessage) CreateFromPdu ¶
CreateFromPdu calls android.telephony.gsm.SmsMessage.createFromPdu.
func (*SmsMessage) GetDisplayMessageBody ¶
func (m *SmsMessage) GetDisplayMessageBody() (string, error)
GetDisplayMessageBody calls android.telephony.gsm.SmsMessage.getDisplayMessageBody.
func (*SmsMessage) GetDisplayOriginatingAddress ¶
func (m *SmsMessage) GetDisplayOriginatingAddress() (string, error)
GetDisplayOriginatingAddress calls android.telephony.gsm.SmsMessage.getDisplayOriginatingAddress.
func (*SmsMessage) GetEmailBody ¶
func (m *SmsMessage) GetEmailBody() (string, error)
GetEmailBody calls android.telephony.gsm.SmsMessage.getEmailBody.
func (*SmsMessage) GetEmailFrom ¶
func (m *SmsMessage) GetEmailFrom() (string, error)
GetEmailFrom calls android.telephony.gsm.SmsMessage.getEmailFrom.
func (*SmsMessage) GetIndexOnSim ¶
func (m *SmsMessage) GetIndexOnSim() (int32, error)
GetIndexOnSim calls android.telephony.gsm.SmsMessage.getIndexOnSim.
func (*SmsMessage) GetMessageBody ¶
func (m *SmsMessage) GetMessageBody() (string, error)
GetMessageBody calls android.telephony.gsm.SmsMessage.getMessageBody.
func (*SmsMessage) GetMessageClass ¶
func (m *SmsMessage) GetMessageClass() (*jni.Object, error)
GetMessageClass calls android.telephony.gsm.SmsMessage.getMessageClass.
func (*SmsMessage) GetOriginatingAddress ¶
func (m *SmsMessage) GetOriginatingAddress() (string, error)
GetOriginatingAddress calls android.telephony.gsm.SmsMessage.getOriginatingAddress.
func (*SmsMessage) GetPdu ¶
func (m *SmsMessage) GetPdu() (*jni.Object, error)
GetPdu calls android.telephony.gsm.SmsMessage.getPdu.
func (*SmsMessage) GetProtocolIdentifier ¶
func (m *SmsMessage) GetProtocolIdentifier() (int32, error)
GetProtocolIdentifier calls android.telephony.gsm.SmsMessage.getProtocolIdentifier.
func (*SmsMessage) GetPseudoSubject ¶
func (m *SmsMessage) GetPseudoSubject() (string, error)
GetPseudoSubject calls android.telephony.gsm.SmsMessage.getPseudoSubject.
func (*SmsMessage) GetServiceCenterAddress ¶
func (m *SmsMessage) GetServiceCenterAddress() (string, error)
GetServiceCenterAddress calls android.telephony.gsm.SmsMessage.getServiceCenterAddress.
func (*SmsMessage) GetStatus ¶
func (m *SmsMessage) GetStatus() (int32, error)
GetStatus calls android.telephony.gsm.SmsMessage.getStatus.
func (*SmsMessage) GetStatusOnSim ¶
func (m *SmsMessage) GetStatusOnSim() (int32, error)
GetStatusOnSim calls android.telephony.gsm.SmsMessage.getStatusOnSim.
func (*SmsMessage) GetSubmitPdu4 ¶
func (m *SmsMessage) GetSubmitPdu4( arg0 string, arg1 string, arg2 string, arg3 bool, ) (*jni.Object, error)
GetSubmitPdu4 calls android.telephony.gsm.SmsMessage.getSubmitPdu.
func (*SmsMessage) GetSubmitPdu5_1 ¶
func (m *SmsMessage) GetSubmitPdu5_1( arg0 string, arg1 string, arg2 int16, arg3 *jni.Object, arg4 bool, ) (*jni.Object, error)
GetSubmitPdu5_1 calls android.telephony.gsm.SmsMessage.getSubmitPdu.
func (*SmsMessage) GetTPLayerLengthForPDU ¶
func (m *SmsMessage) GetTPLayerLengthForPDU(arg0 string) (int32, error)
GetTPLayerLengthForPDU calls android.telephony.gsm.SmsMessage.getTPLayerLengthForPDU.
func (*SmsMessage) GetTimestampMillis ¶
func (m *SmsMessage) GetTimestampMillis() (int64, error)
GetTimestampMillis calls android.telephony.gsm.SmsMessage.getTimestampMillis.
func (*SmsMessage) GetUserData ¶
func (m *SmsMessage) GetUserData() (*jni.Object, error)
GetUserData calls android.telephony.gsm.SmsMessage.getUserData.
func (*SmsMessage) IsCphsMwiMessage ¶
func (m *SmsMessage) IsCphsMwiMessage() (bool, error)
IsCphsMwiMessage calls android.telephony.gsm.SmsMessage.isCphsMwiMessage.
func (*SmsMessage) IsEmail ¶
func (m *SmsMessage) IsEmail() (bool, error)
IsEmail calls android.telephony.gsm.SmsMessage.isEmail.
func (*SmsMessage) IsMWIClearMessage ¶
func (m *SmsMessage) IsMWIClearMessage() (bool, error)
IsMWIClearMessage calls android.telephony.gsm.SmsMessage.isMWIClearMessage.
func (*SmsMessage) IsMWISetMessage ¶
func (m *SmsMessage) IsMWISetMessage() (bool, error)
IsMWISetMessage calls android.telephony.gsm.SmsMessage.isMWISetMessage.
func (*SmsMessage) IsMwiDontStore ¶
func (m *SmsMessage) IsMwiDontStore() (bool, error)
IsMwiDontStore calls android.telephony.gsm.SmsMessage.isMwiDontStore.
func (*SmsMessage) IsReplace ¶
func (m *SmsMessage) IsReplace() (bool, error)
IsReplace calls android.telephony.gsm.SmsMessage.isReplace.
func (*SmsMessage) IsReplyPathPresent ¶
func (m *SmsMessage) IsReplyPathPresent() (bool, error)
IsReplyPathPresent calls android.telephony.gsm.SmsMessage.isReplyPathPresent.
func (*SmsMessage) IsStatusReportMessage ¶
func (m *SmsMessage) IsStatusReportMessage() (bool, error)
IsStatusReportMessage calls android.telephony.gsm.SmsMessage.isStatusReportMessage.
type SmsMessageMessageClass ¶
SmsMessageMessageClass wraps android.telephony.gsm.SmsMessage$MessageClass.
type SmsMessageSubmitPdu ¶
SmsMessageSubmitPdu wraps android.telephony.gsm.SmsMessage$SubmitPdu.
func (*SmsMessageSubmitPdu) ToString ¶
func (m *SmsMessageSubmitPdu) ToString() (string, error)
ToString calls android.telephony.gsm.SmsMessage$SubmitPdu.toString.