Methods Summary |
---|
public com.android.im.engine.HeartbeatService | getHeartbeatService()
if(mContext == null) {
throw new IllegalStateException("Hasn't been initialized yet");
}
if (mHeartbeatServcie == null) {
mHeartbeatServcie = new AndroidHeartBeatService(mContext);
}
return mHeartbeatServcie;
|
public static com.android.im.service.AndroidSystemService | getInstance()
if (sInstance == null) {
sInstance = new AndroidSystemService();
}
return sInstance;
|
public com.android.im.engine.SmsService | getSmsService()
if(mContext == null) {
throw new IllegalStateException("Hasn't been initialized yet");
}
if (mSmsService == null) {
mSmsService = new AndroidSmsService(mContext);
}
return mSmsService;
|
public void | initialize(android.content.Context context)
mContext = context;
|
public void | shutdown()
if (mHeartbeatServcie != null) {
mHeartbeatServcie.stopAll();
}
if (mSmsService != null) {
mSmsService.stop();
}
|