public final class Skype extends Object
SkypeClient| Modifier and Type | Field and Description |
|---|---|
static boolean |
isDebuggingNativeLib |
static String |
LIBRARY_VERSION
The library version.
|
| Modifier and Type | Method and Description |
|---|---|
static Application |
addApplication(String name)
Add an AP2AP capable application.
|
static void |
addCallListener(CallListener listener)
Add a listener for CALL events received from the Skype API.
|
static void |
addChatMessageEditListener(ChatMessageEditListener listener)
Add a listener for CHATMESSAGE events with EDITED_BY status received from the Skype API.
|
static void |
addChatMessageListener(ChatMessageListener listener)
Add a listener for CHATMESSAGE events received from the Skype API.
|
static void |
addGlobalChatListener(GlobalChatListener listener) |
static void |
addVoiceMailListener(VoiceMailListener listener)
Adds a listener for voice mail events received from the Skype API.
|
static Call |
call(String... skypeIds)
Make a Skype CALL to multiple users.
|
static Call |
call(String skypeId)
Make a Skype CALL to one single Skype user.
|
static Chat |
chat(String skypeId)
Start a chat with a single Skype user.
|
static Chat |
chat(String[] skypeIds)
Start a chat with multiple Skype users.
|
static void |
clearCallHistory()
Clears all call history.
|
static void |
clearChatHistory()
Clears all chat history.
|
static void |
clearVoiceMailHistory()
Clears all voice mail history.
|
static Call[] |
getAllActiveCalls()
Gets all the active calls visible on calltabs.
|
static Chat[] |
getAllActiveChats()
Gets the all chats which are open in the windows.
|
static Chat[] |
getAllBookmarkedChats()
Gets the all bookmarked chats.
|
static Chat[] |
getAllChats()
Gets the all chats.
|
static Chat[] |
getAllMissedChats()
Gets the all chats which include unread messages
|
SMS[] |
getAllMissedSMSs()
Find all missed SMS messages.
|
static Chat[] |
getAllRecentChats()
Gets the all recent chats in the locally-cached history.
|
SMS[] |
getAllSMSs()
Find all SMS messages.
|
static VoiceMail[] |
getAllVoiceMails()
Gets the all voice mails.
|
static String |
getAudioInputDevice()
Gets the current audio input device of this Skype.
|
static String |
getAudioOutputDevice()
Gets the current audio output device of this Skype.
|
static ContactList |
getContactList()
Get the contactlist instance of this Skype session.
|
static String |
getInstalledPath()
Find the install path of the Skype client.
|
static Profile |
getProfile()
Get the singleton instance of the users profile.
|
static User |
getUser(String id)
Return User based on ID.
|
static String |
getVersion()
Return the version of the Skype client (not this API).
|
static String |
getVideoDevice()
Get the current video input device used by the Skype Client.
|
static boolean |
isCallListenerRegistered(CallListener listener) |
static boolean |
isInstalled()
Check if Skype client is installed on this computer.
|
static boolean |
isRunning()
Check if Skype client is running.
|
static void |
removeCallListener(CallListener listener)
Remove a listener for CALL events.
|
static void |
removeChatMessageEditListener(ChatMessageEditListener listener)
Remove a listener for CHATMESSAGE with status EDITED_BY events.
|
static void |
removeChatMessageListener(ChatMessageListener listener)
Remove a listener for CHATMESSAGE events.
|
static void |
removeGlobalChatListener(GlobalChatListener listener) |
static void |
removeVoiceMailListener(VoiceMailListener listener)
Remove a listener for VOICEMAIL events.
|
static User[] |
searchUsers(String keyword)
Search users by a part of id or e-mail.
|
static SMS |
sendSMS(String[] numbers,
String content)
Send an SMS to one or more cell phone numbers.
|
static SMS |
sendSMS(String number,
String content)
Send an SMS to one cell phone number.
|
static void |
setAudioInputDevice(String deviceName)
Sets the current audio input device of this Skype.
|
static void |
setAudioOutputDevice(String deviceName)
Sets the current audio output device of this Skype.
|
static void |
setDaemon(boolean on)
Sets the thread of Skype4Java to "daemon mode" or not.
|
static void |
setDeamon(boolean on)
Deprecated.
|
static void |
setDebug(boolean on)
Enable debug logging.
|
static void |
setDebugNative(boolean b) |
static void |
setSkypeExceptionHandler(SkypeExceptionHandler handler)
Use another exceptionhandler then the default one.
|
static void |
setVideoDevice(String deviceName)
Set the video device used by the Skype client.
|
static SMS |
submitConfirmationCode(String number)
Send a SMS confirmation code.
|
static SMS |
submitConfirmationCode(String[] numbers)
Send a SMS confirmation code.
|
static SMS |
submitConfirmationCode(String[] numbers,
String code)
Send a SMS confirmation code.
|
static SMS |
submitConfirmationCode(String number,
String code)
Send a SMS confirmation code.
|
static VoiceMail |
voiceMail(String skypeId)
Leave a voicemail in a other Skype users voicemailbox.
|
public static final String LIBRARY_VERSION
public static boolean isDebuggingNativeLib
@Deprecated public static void setDeamon(boolean on)
on - true to set the thread to "daemon mode"public static void setDaemon(boolean on)
on - true to set the thread to "daemon mode"public static void setDebug(boolean on)
throws SkypeException
on - if true debug logging will be sent to the console.SkypeException - when the connection has gone bad.public static String getVersion() throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.public static boolean isInstalled()
public static String getInstalledPath()
public static boolean isRunning()
throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.public static User[] searchUsers(String keyword) throws SkypeException
keword - a part of id or e-mailSkypeException - when connection has gone bad or ERROR reply.public static ContactList getContactList() throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.public static Call call(String... skypeIds) throws SkypeException
skypeIds - The users to call.SkypeException - when connection has gone bad or ERROR reply.public static Call call(String skypeId) throws SkypeException
skypeId - The user to call.SkypeException - when connection has gone bad or ERROR reply.public static Chat chat(String[] skypeIds) throws SkypeException
skypeIds - The users to start a chat with.SkypeException - when connection has gone bad or ERROR reply.public static Chat chat(String skypeId) throws SkypeException
skypeId - The user to start the with.SkypeException - when connection has gone bad or ERROR reply.public static SMS submitConfirmationCode(String[] numbers) throws SkypeException
numbers - the cell phone numbers to validate.SkypeException - when connection has gone bad or ERROR reply.public static SMS submitConfirmationCode(String number) throws SkypeException
number - the cell phone numbers to validate.SkypeException - when connection has gone bad or ERROR reply.public static SMS submitConfirmationCode(String[] numbers, String code) throws SkypeException
numbers - the cell phone numbers to validate.code - the validation code to send.SkypeException - when connection has gone bad or ERROR reply.public static SMS submitConfirmationCode(String number, String code) throws SkypeException
number - the cell phone numbers to validate.code - the validation code to send.SkypeException - when connection has gone bad or ERROR reply.public static SMS sendSMS(String[] numbers, String content) throws SkypeException
numbers - the cell phone numbers to send to.content - the message to send.SkypeException - when connection has gone bad or ERROR reply.public static SMS sendSMS(String number, String content) throws SkypeException
number - the cell phone numbers to send to.content - the message to send.SkypeException - when connection has gone bad or ERROR reply.public SMS[] getAllSMSs() throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.public SMS[] getAllMissedSMSs() throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.public static VoiceMail voiceMail(String skypeId) throws SkypeException
skypeId - The Skype user to leave a voicemail.SkypeException - when connection has gone bad or ERROR reply.public static VoiceMail[] getAllVoiceMails() throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static Application addApplication(String name) throws SkypeException
name - The name of the AP2AP application.SkypeException - when connection has gone bad or ERROR reply.public static String getAudioInputDevice() throws SkypeException
null
if the device is the default.SkypeException - when connection has gone bad or ERROR reply.setAudioInputDevice(String)public static String getAudioOutputDevice() throws SkypeException
null
if the device is the default.SkypeException - when connection has gone bad or ERROR reply.setAudioOutputDevice(String)public static String getVideoDevice() throws SkypeException
SkypeException - when connection has gone bad or ERROR reply.public static void setAudioInputDevice(String deviceName) throws SkypeException
deviceName - the audio input device name. A null value means
the default.SkypeException - when connection has gone bad or ERROR reply.getAudioInputDevice()public static void setAudioOutputDevice(String deviceName) throws SkypeException
deviceName - the audio output device name. A null value
means the default.SkypeException - when connection has gone bad or ERROR reply.getAudioOutputDevice()public static void setVideoDevice(String deviceName) throws SkypeException
deviceName - name of the device to set.SkypeException - when connection has gone bad or ERROR reply.public static Profile getProfile()
public static Call[] getAllActiveCalls() throws SkypeException
SkypeException - thrown when Skype API is unavailable or getting an Skype API error.public static Chat[] getAllChats() throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static Chat[] getAllActiveChats() throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static Chat[] getAllMissedChats() throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static Chat[] getAllRecentChats() throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static Chat[] getAllBookmarkedChats() throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static void clearCallHistory()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static void clearChatHistory()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static void clearVoiceMailHistory()
throws SkypeException
SkypeException - If there is a problem with the connection or state at the Skype client.public static User getUser(String id)
id - ID of the User.public static void addChatMessageListener(ChatMessageListener listener) throws SkypeException
listener - the Listener to add.SkypeException - when connection has gone bad or ERROR reply.removeChatMessageListener(ChatMessageListener)public static void removeChatMessageListener(ChatMessageListener listener)
listener - The listener to remove.addChatMessageListener(ChatMessageListener)public static void addChatMessageEditListener(ChatMessageEditListener listener) throws SkypeException
listener - the Listener to add.SkypeException - when connection has gone bad or ERROR reply.removeChatMessageEditListener(ChatMessageEditListener)public static void removeChatMessageEditListener(ChatMessageEditListener listener) throws SkypeException
listener - The listener to remove.SkypeExceptionaddChatMessageEditListener(ChatMessageEditListener)public static void addCallListener(CallListener listener) throws SkypeException
listener - the listener to add.SkypeException - when connection has gone bad or ERROR reply.CallListenerpublic static boolean isCallListenerRegistered(CallListener listener)
public static void removeCallListener(CallListener listener)
listener - The listener to add.public static void addVoiceMailListener(VoiceMailListener listener) throws SkypeException
listener - the added listenerSkypeException - if connection is bad or error is returnedVoicemaListenerpublic static void removeVoiceMailListener(VoiceMailListener listener)
listener - The listener to add.public static void addGlobalChatListener(GlobalChatListener listener) throws SkypeException
SkypeExceptionpublic static void removeGlobalChatListener(GlobalChatListener listener)
public static void setSkypeExceptionHandler(SkypeExceptionHandler handler)
handler - the handler to use.SkypeExceptionHandlerpublic static void setDebugNative(boolean b)
Copyright © 2013. All Rights Reserved.