Package org.jivesoftware.smack.android
Class AndroidSmackInitializer
- java.lang.Object
-
- org.jivesoftware.smack.android.AndroidSmackInitializer
-
- All Implemented Interfaces:
SmackInitializer
public class AndroidSmackInitializer extends java.lang.Object implements SmackInitializer
This class initialized Smack for you on Android. Unfortunately it can't do it automatically, you should callinitialize(Context)
once before performing your first XMPP connection with Smack. Note that on Android 21 or higher you need to hold the ACCESS_NETWORK_STATE permission.
-
-
Constructor Summary
Constructors Constructor Description AndroidSmackInitializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Exception>
initialize()
static void
initialize(android.content.Context context)
Initializes Smack on Android.
-
-
-
Constructor Detail
-
AndroidSmackInitializer
public AndroidSmackInitializer()
-
-
Method Detail
-
initialize
public java.util.List<java.lang.Exception> initialize()
- Specified by:
initialize
in interfaceSmackInitializer
-
initialize
public static void initialize(android.content.Context context)
Initializes Smack on Android. You should call this method fore performing your first XMPP connection with Smack.- Parameters:
context
- an Android context.- Since:
- 4.3
-
-