diff options
Diffstat (limited to 'voip/java/android/net/sip')
-rw-r--r-- | voip/java/android/net/sip/SipAudioCall.java | 20 | ||||
-rw-r--r-- | voip/java/android/net/sip/SipManager.java | 3 |
2 files changed, 22 insertions, 1 deletions
diff --git a/voip/java/android/net/sip/SipAudioCall.java b/voip/java/android/net/sip/SipAudioCall.java index 834ea70..6a4014f 100644 --- a/voip/java/android/net/sip/SipAudioCall.java +++ b/voip/java/android/net/sip/SipAudioCall.java @@ -41,6 +41,16 @@ import java.util.Map; * facilitates instantiating a {@code SipAudioCall} object for making/receiving * calls. See {@link SipManager#makeAudioCall} and * {@link SipManager#takeAudioCall}. + * + * <p>Requires permissions to use this class: + * {@link android.Manifest.permission#INTERNET} and + * {@link android.Manifest.permission#USE_SIP}. + * <br/>Requires permissions to {@link #startAudio}: + * {@link android.Manifest.permission#RECORD_AUDIO}, + * {@link android.Manifest.permission#ACCESS_WIFI_STATE} and + * {@link android.Manifest.permission#WAKE_LOCK}. + * <br/>Requires permissions to {@link #setSpeakerMode}: + * {@link android.Manifest.permission#MODIFY_AUDIO_SETTINGS}. */ public class SipAudioCall { private static final String TAG = SipAudioCall.class.getSimpleName(); @@ -774,7 +784,11 @@ public class SipAudioCall { } } - /** Puts the device to speaker mode. */ + /** + * Puts the device to speaker mode. + * <p>Requires permission: + * {@link android.Manifest.permission#MODIFY_AUDIO_SETTINGS}. + */ public void setSpeakerMode(boolean speakerMode) { synchronized (this) { ((AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE)) @@ -874,6 +888,10 @@ public class SipAudioCall { /** * Starts the audio for the established call. This method should be called * after {@link Listener#onCallEstablished} is called. + * <p>Requires permission: + * {@link android.Manifest.permission#RECORD_AUDIO}, + * {@link android.Manifest.permission#ACCESS_WIFI_STATE} and + * {@link android.Manifest.permission#WAKE_LOCK}. */ public void startAudio() { try { diff --git a/voip/java/android/net/sip/SipManager.java b/voip/java/android/net/sip/SipManager.java index e1b1d10..38d2b0c 100644 --- a/voip/java/android/net/sip/SipManager.java +++ b/voip/java/android/net/sip/SipManager.java @@ -50,6 +50,9 @@ import java.text.ParseException; * </ul> * {@code SipManager} can only be instantiated if SIP API is supported by the * device. (See {@link #isApiSupported}). + * <p>Requires permissions to use this class: + * {@link android.Manifest.permission#INTERNET} and + * {@link android.Manifest.permission#USE_SIP}. */ public class SipManager { /** |