Filter
-
Content Type
-
Category
Mobile/Wearable
Visual Display
Digital Appliance
Platform
Recommendations
Filter
Develop Mobile Galaxy Accessory
apioverview package class tree deprecated index help com samsung android sdk accessory class saauthenticationtoken java lang object com samsung android sdk accessory saauthenticationtoken public class saauthenticationtoken extends java lang object saauthenticationtoken stores the type of authentication currently, only support x 509 certificate , and the key corresponding to the authentication type the application can get the instance of this class by using saagent onauthenticationresponse sapeeragent, saauthenticationtoken, int callback the application can verify accessory peer agent's identity by checking its authentication token information, and then decide whether to request a service connection with the accessory peer agent, or whether to accept incoming service connection requests from the accessory peer agent developer guides for more information about using accessory, please refer to the accessory programming guide field summary fields modifier and type field and description static int authentication_type_certificate_x509 x 509 certificate authentication type static int authentication_type_none none or invalid authentication type constant value 1547 0x0000060b method summary all methods instance methods concrete methods modifier and type method and description int getauthenticationtype returns the authentication type byte[] getkey returns the key corresponding to this authentication token field detail authentication_type_none public static final int authentication_type_none none or invalid authentication type constant value 1547 0x0000060b since 2 0 19 see also constant field values authentication_type_certificate_x509 public static final int authentication_type_certificate_x509 x 509 certificate authentication type constant value 1548 0x0000060c since 2 0 19 see also constant field values method detail getkey public byte[] getkey returns the key corresponding to this authentication token returns the key corresponding to this authentication token since 2 0 19 getauthenticationtype public int getauthenticationtype returns the authentication type returns the authentication type see authentication_type_certificate_x509, authentication_type_none since 2 0 19
Develop Samsung Pay
apioverview package class tree index help package com samsung android sdk samsungpay v2 interface apptoappconstants all known implementing classes cardmanager, watchmanager public interface apptoappconstants this interface provides the common values of watchmanager and cardmanager since api level 2 5 field summary fields modifier and type field description static final int error_auth_code_expired this error indicates that auth code is expired this is returned as spaysdk extra_error_reason for error_verify_card error static final int error_auth_code_invalid this error indicates that auth code is invalid this is returned as spaysdk extra_error_reason for error_verify_card error static final int error_auth_code_max_try_reached this error indicates that maximum idnv try reached this is returned as spaysdk extra_error_reason for error_verify_card error static final int error_auth_code_type_invalid this error indicates that auth code type is invalid this is returned as spaysdk extra_error_reason for error_verify_card error static final int error_authentication_closed this error indicates that authentication is force closed during update card service static final int error_authentication_failed this error indicates that authentication is failed during update card service static final int error_authentication_not_ready this error indicates that authentication is not ready state during update card service static final int error_authentication_timed_out this error indicates that authentication is closed due to timeout during update card service static final int error_card_already_registered this error indicates that the requested operation is already done and this operation cannot be performed again this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error static final int error_card_idv_not_supported this error indicates that the card does not support any idnv this is returned as spaysdk extra_error_reason for error_verify_card error static final int error_card_not_supported this error indicates that card is not supported this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error static final int error_framework_internal this error indicates that an error occurred in payment framework while processing the request this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error for example, unable to load certificate from ta, unable to access payment framework db, and so on static final int error_invalid_card this error indicates that the card is invalid this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error static final int error_invalid_cardinput this error indicates that the user entered invalid card information this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error static final int error_max_card_num_reached this error indicates that the maximum number of card limit has reached and user cannot add more card to samsung pay this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error static final int error_max_pan_provision_num_reached this error indicates that the limit number of enrollments of this pan has reached and user cannot add this pan this time static final int error_server_reject this error indicates that the server declined the request this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error static final int error_tsm_fail this error indicates that tsm error is reported during card downloading static final int error_verify_card this error indicates that server was unable to verify the card operation this may be due to invalid verification code static final int error_wallet_id_mismatch this error indicates that wallet id is mismatch this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error static final string extra_app2app_intent key to represent app2app intent name defined by issuer server static final string extra_app2app_payload key to represent app2app payload sent by issuer server static final string extra_card_balance key to represent card balance static final string extra_card_status_reason key to represent extra card status for issuer app static final string extra_issuer_app_card_linked key to represent extra card information for card link field details error_verify_card static final int error_verify_card this error indicates that server was unable to verify the card operation this may be due to invalid verification code since api level 1 2 see also constant field values error_card_already_registered static final int error_card_already_registered this error indicates that the requested operation is already done and this operation cannot be performed again this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 1 2 see also constant field values error_framework_internal static final int error_framework_internal this error indicates that an error occurred in payment framework while processing the request this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error for example, unable to load certificate from ta, unable to access payment framework db, and so on since api level 1 2 see also constant field values error_invalid_card static final int error_invalid_card this error indicates that the card is invalid this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 1 2 see also constant field values error_invalid_cardinput static final int error_invalid_cardinput this error indicates that the user entered invalid card information this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 1 2 see also constant field values error_server_reject static final int error_server_reject this error indicates that the server declined the request this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 1 2 see also constant field values error_max_card_num_reached static final int error_max_card_num_reached this error indicates that the maximum number of card limit has reached and user cannot add more card to samsung pay this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 1 2 see also constant field values error_tsm_fail static final int error_tsm_fail this error indicates that tsm error is reported during card downloading this is for tsm solution only since api level 1 4 see also constant field values error_authentication_not_ready static final int error_authentication_not_ready this error indicates that authentication is not ready state during update card service since api level 1 8 see also constant field values error_authentication_failed static final int error_authentication_failed this error indicates that authentication is failed during update card service since api level 1 8 see also constant field values error_authentication_closed static final int error_authentication_closed this error indicates that authentication is force closed during update card service since api level 1 8 see also constant field values error_authentication_timed_out static final int error_authentication_timed_out this error indicates that authentication is closed due to timeout during update card service since api level 1 8 see also constant field values error_card_not_supported static final int error_card_not_supported this error indicates that card is not supported this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 2 5 see also constant field values error_max_pan_provision_num_reached static final int error_max_pan_provision_num_reached this error indicates that the limit number of enrollments of this pan has reached and user cannot add this pan this time user needs to contact issuer to resolve this issue this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 2 5 see also constant field values error_wallet_id_mismatch static final int error_wallet_id_mismatch this error indicates that wallet id is mismatch this is returned as spaysdk extra_error_reason for spaysdk error_registration_fail error since api level 2 5 see also constant field values error_auth_code_invalid static final int error_auth_code_invalid this error indicates that auth code is invalid this is returned as spaysdk extra_error_reason for error_verify_card error since api level 2 7 see also constant field values error_auth_code_expired static final int error_auth_code_expired this error indicates that auth code is expired this is returned as spaysdk extra_error_reason for error_verify_card error since api level 2 7 see also constant field values error_auth_code_max_try_reached static final int error_auth_code_max_try_reached this error indicates that maximum idnv try reached this is returned as spaysdk extra_error_reason for error_verify_card error since api level 2 7 see also constant field values error_auth_code_type_invalid static final int error_auth_code_type_invalid this error indicates that auth code type is invalid this is returned as spaysdk extra_error_reason for error_verify_card error since api level 2 7 see also constant field values error_card_idv_not_supported static final int error_card_idv_not_supported this error indicates that the card does not support any idnv this is returned as spaysdk extra_error_reason for error_verify_card error since api level 2 7 see also constant field values extra_app2app_intent static final string extra_app2app_intent key to represent app2app intent name defined by issuer server since api level 1 1 see also constant field values extra_app2app_payload static final string extra_app2app_payload key to represent app2app payload sent by issuer server since api level 1 1 see also constant field values extra_card_balance static final string extra_card_balance key to represent card balance since api level 1 8 see also constant field values extra_card_status_reason static final string extra_card_status_reason key to represent extra card status for issuer app since api level 1 4 see also constant field values extra_issuer_app_card_linked static final string extra_issuer_app_card_linked key to represent extra card information for card link since api level 2 2 see also constant field values samsung electronics samsung pay sdk 2 21 00 - sep 06 2024
Develop Smart TV
apitizenfx api references the tizenfx api allows applications to call in platform-specific functionality from shared code it enables you to implement native features in xamarin forms applications the following table lists the tizenfx api modules and their smart tv and tv emulator support namespace assembly support tv emulator elmsharp provides pre-built ui components for creating a rich gui elmsharp dll yes yes elmsharp accessible provides ui information for the screen reader elmsharp wearable provides pre-built ui components for creating a rich wearable device gui elmsharp wearable dll no no tizen provides the tizen logging and trace messaging functionalities tizen log dll yes yes tizen tracer dll tizen account accountmanager provides crud create, read, update, delete account management functionality tizen account accountmanager dll no no tizen account fidoclient provides user authentication functionality using the fido uaf protocol tizen account fidoclient dll tizen account oauth 2 provides account management functionality using the oauth2 rfc 6749 protocol tizen account oauth2 dll tizen account syncmanager manages account synchronization operations tizen account syncmanager dll tizen applications provides the tizen application framework tizen applications alarm dll yes yes tizen applications badge dll no no tizen applications common dll yes yes tizen applications packagemanager dll tizen applications preference dll tizen applications remoteview dll tizen applications service dll tizen applications toastmessage dll tizen applications ui dll tizen applications watchapplication dll no no tizen applications widgetapplication dll yes yes tizen applications widgetcontrol dll tizen applications attachpanel provides the attach panel functionality tizen applications attachpanel dll no no tizen applications corebackend provides the application backend life-cycle, including state change events tizen applications common dll yes yes tizen applications watchapplication dll no no tizen applications datacontrol provides a standard mechanism for exchanging specific data between applications tizen applications datacontrol dll yes yes tizen applications exceptions provides exception messages tizen applications common dll tizen applications messages sends and receives messages between applications tizen applications messageport dll tizen applications notificationeventlistener manages notification events tizen applications notificationeventlistener dll tizen applications notifications displays messages in the notification area tizen applications notification dll tizen applications shortcut manages application shortcuts tizen applications shortcut dll no no tizen common provides predefined color names tizen dll yes yes tizen content download manages downloading content from the web tizen content download dll tizen content mediacontent stores and indexes audio, image, and video content tizen content mediacontent dll tizen content mimetype associates file extensions with mime types tizen content mimetype dll tizen context apphistory accesses the user's application history tizen context dll no no tizen internals errors provides error messages tizen dll yes yes tizen location manages geographical location services tizen location dll no no tizen location geofence provides the geofence functionality tizen location geofence dll tizen maps enables creating map-aware applications tizen maps dll yes yes tizen messaging email enables sending email tizen messaging dll no no tizen messaging messages enables sending and receiving various messages, such as sms, mms, and cell broadcast messages tizen messaging push enables receiving push notifications tizen messaging push dll no no tizen multimedia interacts with media services, including playback and recording, and device policy tizen multimedia audioio dll yes yes tizen multimedia camera dll no no tizen multimedia dll yes yes tizen multimedia mediaplayer dll tizen multimedia metadata dll tizen multimedia radio dll no no tizen multimedia recorder dll tizen multimedia streamrecorder dll tizen multimedia mediacodec encodes and decodes video and audio data tizen multimedia mediacodec dll tizen multimedia remoting provides the media controller and screen mirroring functionalities tizen multimedia remoting dll tizen multimedia util processes image files, such as resizing, rotating, cropping, and encoding and decoding them tizen multimedia util dll yes yes tizen multimedia vision provides visual detection and recognition functionalities, such as face detection and barcode recognition tizen multimedia vision dll no no tizen network bluetooth provides bluetooth functionalities tizen network bluetooth dll yes partially no tizen network connection manages various network connection information tizen network connection dll yes yes tizen network iotconnectivity provides iot connectivity functionality tizen network iotconnectivity dll tizen network nfc provides near-field communication nfc functionality tizen network nfc dll no no tizen network nsd manages network service discovery tizen network nsd dll yes yes tizen network smartcard provides smart card functionality tizen network smartcard dll no no tizen network wifi manages wi-fi devices and access points tizen network wifi dll yes tizen network wifidirect manages wi-fi direct® connections and settings tizen network wifidirect dll no tizen nui provides the natural user interface nui toolkit for creating a rich gui tizen nui dll yes yes tizen nui basecomponents provides the nui base components tizen nui constants provides various constants for nui component properties tizen phonenumberutils parses and formats phone numbers tizen phonenumberutils dll no no tizen pims calendar provides calendar services tizen pims calendar dll yes yes tizen pims calendar calendarviews provides calendar view properties tizen pims contacts provides contact information services tizen pims contacts dll no no tizen pims contacts contactsviews provides contact information view properties tizen security manages permissions for privacy-related privileges tizen security dll yes yes tizen security privacyprivilegemanager dll tizen security securerepository provides a secure repository for keys, certificates, and other sensitive data tizen security securerepository dll tizen security securerepository crypto provides secure cryptographic operations tizen security teec enables secure communication with applications within a trusted execution environment tee tizen security teec dll tizen sensor accesses device sensors and sensor information tizen sensor dll no no tizen system provides device-specific services, including device status, system information and settings, haptic feedback, and sensor control tizen system dll yes yes tizen system feedback dll tizen system information dll tizen system mediakey dll tizen system storage dll tizen system systemsettings dll tizen system usb manages attached usb devices tizen system usb dll no no tizen telephony provides telephony functionality tizen telephony dll tizen uix inputmethod enables the user to enter text tizen uix inputmethod dll yes yes tizen uix inputmethodmanager manages the installed input method editors tizen uix inputmethodmanager dll tizen uix stt enables speech recognition tizen uix stt dll no tizen uix sttengine provides the speech-to-text stt engine tizen uix sttengine dll tizen uix tts enables speech synthesis tizen uix tts dll yes tizen uix ttsengine provides the text-to-speech tts engine tizen uix ttsengine dll tizen uix voicecontrol enables voice control tizen uix voicecontrol dll no tizen webview accesses web pages and web content tizen webview dll yes table 1 tizenfx api module support
Develop Smart Signage
apicertification file path for peap base ap connection void seteapcafilepath domstring path ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public parameters path peap certification file path exceptions webapiexception with error type typemismatcherror, if invalid domstring type passed for 'path' parameter with error type securityerror, if the application does not have the privilege to call this method since 6 5 code example var err = false; try { webapis network seteapcafilepath "/opt/usr/home/owner/share/root_test/ca der" ; } catch e { console error "seteapcafilepath exception [" + e code + "] name " + e name + " message " + e message ; err = true; } if err != true { console log "[seteapcafilepath] success" ; } seteappassphrase sets the username and password void seteappassphrase domstring name, domstring password ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public parameters name to be set password to be set exceptions webapiexception with error type typemismatcherror, if invalid domstring type passed for 'name' and 'password' parameter with error type securityerror, if the application does not have the privilege to call this method since 6 5 code example var err = false; try { webapis network seteappassphrase "testing11", "password11" ; } catch e { console error "seteappassphrase exception [" + e code + "] name " + e name + " message " + e message ; err = true; } if err != true { console log "[seteappassphrase] success" ; } getwififrequency retrieves the wi-fi network frequency works only when the active connection type is wi-fi long getwififrequency ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public return value long wi-fi network frequency mhz exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type invalidstateerror, if a wi-fi connection is not available since 6 0 code example var wififrequency = null; try { wififrequency = webapis network getwififrequency ; } catch e { console log "getwififrequency exception [" + e code + "] name " + e name + " message " + e message ; } if null != wififrequency { console log "[getwififrequency] wififrequency " + wififrequency ; } 1 3 networkstatechangedcallback defines a listener for gateway connection state change notifications [callback = functiononly, nointerfaceobject] interface networkstatechangedcallback { void onchange networkstate state ; }; methods onchange callback method for gateway connection state change notifications void onchange networkstate state ; privilege level public privilege http //developer samsung com/privilege/network public parameters state connection state exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type invalidstateerror, if a network connection is not available since plugin version 3 0 since 3 0 code example var gatewaystatus =null; var onchange = function data { if data == webapis network networkstate gateway_connected { gatewaystatus ="gateway_connected"; } else if data == webapis network networkstate gateway_disconnected { gatewaystatus ="gateway_disconnected"; } else{ gatewaystatus ="status unknown"; } console log "[networkstatechangedcallback] data " + data +" "+ gatewaystatus ; } 1 4 networkipmode defines constants for network ip modes [nointerfaceobject] interface networkipmode { const unsigned long none = 0; const unsigned long static = 1; const unsigned long dynamic = 2; const unsigned long auto = 3; const unsigned long fixed = 4; const unsigned long unknown = 5; }; constants none no network ip mode configured static connected to wired or wireless ipv4 network through static ip configuration dynamic connected to wired or wireless ipv6 network through dynamic ip configuration auto dhcp connected to wired or wireless ipv4 network through automatic ip configuration fixed connected to cellular network through fixed ip configuration unknown no wired or wireless connection 1 5 networkactiveconnectiontype defines constants for network connection types [nointerfaceobject] interface networkactiveconnectiontype { const unsigned long disconnected = 0; const unsigned long wifi = 1; const unsigned long cellular = 2; const unsigned long ethernet = 3; }; constants disconnected no network configured wifi connected to a wi-fi network cellular connected to a cellular network ethernet connected to an ethernet network 1 6 networkstate defines constants for network states [nointerfaceobject] interface networkstate { const unsigned long internet_connected = 0; const unsigned long lan_cable_attached = 1; const unsigned long lan_cable_detached = 2; const unsigned long lan_cable_state_unknown = 3; const unsigned long gateway_connected = 4; const unsigned long gateway_disconnected = 5; const unsigned long wifi_module_state_attached = 6; const unsigned long wifi_module_state_detached = 7; const unsigned long wifi_module_state_unknown = 8; const unsigned long internet_disconnected = 9; }; constants internet_connected internet connected lan_cable_attached lan cable connected lan_cable_detached lan cable disconnected lan_cable_state_unknown lan cable connection state unknown gateway_connected gateway connected gateway_disconnected gateway disconnected wifi_module_state_attached wi-fi module connected wifi_module_state_detached wi-fi module disconnected wifi_module_state_unknown wi-fi module connection state unknown internet_disconnected internet disconnected 1 7 networkwifisecuritymode defines constants for wi-fi network security modes [nointerfaceobject] interface networkwifisecuritymode { const unsigned long wep = 1; const unsigned long wpa_psk = 2; const unsigned long wpa2_psk = 3; const unsigned long eap = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; constants wep wep security mode wpa_psk psk security mode wpa2_psk wpa2_psk security mode eap eap security mode none open security mode unknown security mode unknown 1 8 networkwifiencryptiontype defines constants for wi-fi network encryption types [nointerfaceobject] interface networkwifiencryptiontype { const unsigned long wep = 1; const unsigned long tkip = 2; const unsigned long aes = 3; const unsigned long tkip_aes_mixed = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; constants wep wep encryption tkip tkip encryption aes aes encryption tkip_aes_mixed tkip_aes_mixed encryption none no encryption unknown encryption type unknown 2 full webidl module network { [nointerfaceobject] interface networkmanagerobject { readonly attribute networkmanager network; }; webapi implements networkmanagerobject; [nointerfaceobject] interface networkmanager { attribute networkactiveconnectiontype networkactiveconnectiontype; attribute networkipmode networkipmode; attribute networkstate networkstate; attribute networkwifisecuritymode networkwifisecuritymode; attribute networkwifiencryptiontype networkwifiencryptiontype; domstring getversion ; boolean isconnectedtogateway ; networkipmode getipmode ; void setipmode networkipmode ipmode ; domstring getsubnetmask ; void setsubnetmask domstring subnet ; domstring getgateway ; void setgateway domstring gateway ; domstring getmac ; domstring getdns ; void setdns domstring dns ; domstring getip ; void setip domstring ip ; domstring getproxyserverinfo ; void setproxyserverinfo domstring id, domstring pwd, domstring url, domstring port ; domstring gettvname ; networkactiveconnectiontype getactiveconnectiontype ; unsigned long addnetworkstatechangelistener networkstatechangedcallback listener ; void removenetworkstatechangelistener unsigned long listenerid ; domstring getwifissid ; long getwifisignalstrengthlevel ; networkwifisecuritymode getwifisecuritymode ; networkwifiencryptiontype getwifiencryptiontype ; domstring getsecondarydns ; void setdhcpoption60field domstring vendorname ; void removedhcpoption60field ; domstring getcurrentdhcpoption60field ; domstring checkcurrentipwith60field ; void enablesoftap ; void disablesoftap ; boolean issoftapenabled ; domstring getsoftapssid ; void setsoftapchannel long channel ; domstring getsoftapsecuritykey ; void setsoftapsignalstrength unsigned long power ; void seteapcafilepath domstring path ; void seteappassphrase domstring name, domstring password ; long getwififrequency ; }; [callback = functiononly, nointerfaceobject] interface networkstatechangedcallback { void onchange networkstate state ; }; [nointerfaceobject] interface networkipmode { const unsigned long none = 0; const unsigned long static = 1; const unsigned long dynamic = 2; const unsigned long auto = 3; const unsigned long fixed = 4; const unsigned long unknown = 5; }; [nointerfaceobject] interface networkactiveconnectiontype { const unsigned long disconnected = 0; const unsigned long wifi = 1; const unsigned long cellular = 2; const unsigned long ethernet = 3; }; [nointerfaceobject] interface networkstate { const unsigned long internet_connected = 0; const unsigned long lan_cable_attached = 1; const unsigned long lan_cable_detached = 2; const unsigned long lan_cable_state_unknown = 3; const unsigned long gateway_connected = 4; const unsigned long gateway_disconnected = 5; const unsigned long wifi_module_state_attached = 6; const unsigned long wifi_module_state_detached = 7; const unsigned long wifi_module_state_unknown = 8; const unsigned long internet_disconnected = 9; }; [nointerfaceobject] interface networkwifisecuritymode { const unsigned long wep = 1; const unsigned long wpa_psk = 2; const unsigned long wpa2_psk = 3; const unsigned long eap = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; [nointerfaceobject] interface networkwifiencryptiontype { const unsigned long wep = 1; const unsigned long tkip = 2; const unsigned long aes = 3; const unsigned long tkip_aes_mixed = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; };
Develop Smart TV
apicertification file path for peap base ap connection void seteapcafilepath domstring path ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public parameters path peap certification file path exceptions webapiexception with error type typemismatcherror, if invalid domstring type passed for 'path' parameter with error type securityerror, if the application does not have the privilege to call this method since 6 5 code example var err = false; try { webapis network seteapcafilepath "/opt/usr/home/owner/share/root_test/ca der" ; } catch e { console error "seteapcafilepath exception [" + e code + "] name " + e name + " message " + e message ; err = true; } if err != true { console log "[seteapcafilepath] success" ; } seteappassphrase sets the username and password void seteappassphrase domstring name, domstring password ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public parameters name to be set password to be set exceptions webapiexception with error type typemismatcherror, if invalid domstring type passed for 'name' and 'password' parameter with error type securityerror, if the application does not have the privilege to call this method since 6 5 code example var err = false; try { webapis network seteappassphrase "testing11", "password11" ; } catch e { console error "seteappassphrase exception [" + e code + "] name " + e name + " message " + e message ; err = true; } if err != true { console log "[seteappassphrase] success" ; } getwififrequency retrieves the wi-fi network frequency works only when the active connection type is wi-fi long getwififrequency ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public return value long wi-fi network frequency mhz exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type invalidstateerror, if a wi-fi connection is not available since 6 0 code example var wififrequency = null; try { wififrequency = webapis network getwififrequency ; } catch e { console log "getwififrequency exception [" + e code + "] name " + e name + " message " + e message ; } if null != wififrequency { console log "[getwififrequency] wififrequency " + wififrequency ; } 1 3 networkstatechangedcallback defines a listener for gateway connection state change notifications [callback = functiononly, nointerfaceobject] interface networkstatechangedcallback { void onchange networkstate state ; }; methods onchange callback method for gateway connection state change notifications void onchange networkstate state ; privilege level public privilege http //developer samsung com/privilege/network public parameters state connection state exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type invalidstateerror, if a network connection is not available since plugin version 3 0 since 3 0 code example var gatewaystatus =null; var onchange = function data { if data == webapis network networkstate gateway_connected { gatewaystatus ="gateway_connected"; } else if data == webapis network networkstate gateway_disconnected { gatewaystatus ="gateway_disconnected"; } else{ gatewaystatus ="status unknown"; } console log "[networkstatechangedcallback] data " + data +" "+ gatewaystatus ; } 1 4 networkipmode defines constants for network ip modes [nointerfaceobject] interface networkipmode { const unsigned long none = 0; const unsigned long static = 1; const unsigned long dynamic = 2; const unsigned long auto = 3; const unsigned long fixed = 4; const unsigned long unknown = 5; }; constants none no network ip mode configured static connected to wired or wireless ipv4 network through static ip configuration dynamic connected to wired or wireless ipv6 network through dynamic ip configuration auto dhcp connected to wired or wireless ipv4 network through automatic ip configuration fixed connected to cellular network through fixed ip configuration unknown no wired or wireless connection 1 5 networkactiveconnectiontype defines constants for network connection types [nointerfaceobject] interface networkactiveconnectiontype { const unsigned long disconnected = 0; const unsigned long wifi = 1; const unsigned long cellular = 2; const unsigned long ethernet = 3; }; constants disconnected no network configured wifi connected to a wi-fi network cellular connected to a cellular network ethernet connected to an ethernet network 1 6 networkstate defines constants for network states [nointerfaceobject] interface networkstate { const unsigned long internet_connected = 0; const unsigned long lan_cable_attached = 1; const unsigned long lan_cable_detached = 2; const unsigned long lan_cable_state_unknown = 3; const unsigned long gateway_connected = 4; const unsigned long gateway_disconnected = 5; const unsigned long wifi_module_state_attached = 6; const unsigned long wifi_module_state_detached = 7; const unsigned long wifi_module_state_unknown = 8; const unsigned long internet_disconnected = 9; }; constants internet_connected internet connected lan_cable_attached lan cable connected lan_cable_detached lan cable disconnected lan_cable_state_unknown lan cable connection state unknown gateway_connected gateway connected gateway_disconnected gateway disconnected wifi_module_state_attached wi-fi module connected wifi_module_state_detached wi-fi module disconnected wifi_module_state_unknown wi-fi module connection state unknown internet_disconnected internet disconnected 1 7 networkwifisecuritymode defines constants for wi-fi network security modes [nointerfaceobject] interface networkwifisecuritymode { const unsigned long wep = 1; const unsigned long wpa_psk = 2; const unsigned long wpa2_psk = 3; const unsigned long eap = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; constants wep wep security mode wpa_psk psk security mode wpa2_psk wpa2_psk security mode eap eap security mode none open security mode unknown security mode unknown 1 8 networkwifiencryptiontype defines constants for wi-fi network encryption types [nointerfaceobject] interface networkwifiencryptiontype { const unsigned long wep = 1; const unsigned long tkip = 2; const unsigned long aes = 3; const unsigned long tkip_aes_mixed = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; constants wep wep encryption tkip tkip encryption aes aes encryption tkip_aes_mixed tkip_aes_mixed encryption none no encryption unknown encryption type unknown 2 full webidl module network { [nointerfaceobject] interface networkmanagerobject { readonly attribute networkmanager network; }; webapi implements networkmanagerobject; [nointerfaceobject] interface networkmanager { attribute networkactiveconnectiontype networkactiveconnectiontype; attribute networkipmode networkipmode; attribute networkstate networkstate; attribute networkwifisecuritymode networkwifisecuritymode; attribute networkwifiencryptiontype networkwifiencryptiontype; domstring getversion ; boolean isconnectedtogateway ; networkipmode getipmode ; void setipmode networkipmode ipmode ; domstring getsubnetmask ; void setsubnetmask domstring subnet ; domstring getgateway ; void setgateway domstring gateway ; domstring getmac ; domstring getdns ; void setdns domstring dns ; domstring getip ; void setip domstring ip ; domstring getproxyserverinfo ; void setproxyserverinfo domstring id, domstring pwd, domstring url, domstring port ; domstring gettvname ; networkactiveconnectiontype getactiveconnectiontype ; unsigned long addnetworkstatechangelistener networkstatechangedcallback listener ; void removenetworkstatechangelistener unsigned long listenerid ; domstring getwifissid ; long getwifisignalstrengthlevel ; networkwifisecuritymode getwifisecuritymode ; networkwifiencryptiontype getwifiencryptiontype ; domstring getsecondarydns ; void setdhcpoption60field domstring vendorname ; void removedhcpoption60field ; domstring getcurrentdhcpoption60field ; domstring checkcurrentipwith60field ; void enablesoftap ; void disablesoftap ; boolean issoftapenabled ; domstring getsoftapssid ; void setsoftapchannel long channel ; domstring getsoftapsecuritykey ; void setsoftapsignalstrength unsigned long power ; void seteapcafilepath domstring path ; void seteappassphrase domstring name, domstring password ; long getwififrequency ; }; [callback = functiononly, nointerfaceobject] interface networkstatechangedcallback { void onchange networkstate state ; }; [nointerfaceobject] interface networkipmode { const unsigned long none = 0; const unsigned long static = 1; const unsigned long dynamic = 2; const unsigned long auto = 3; const unsigned long fixed = 4; const unsigned long unknown = 5; }; [nointerfaceobject] interface networkactiveconnectiontype { const unsigned long disconnected = 0; const unsigned long wifi = 1; const unsigned long cellular = 2; const unsigned long ethernet = 3; }; [nointerfaceobject] interface networkstate { const unsigned long internet_connected = 0; const unsigned long lan_cable_attached = 1; const unsigned long lan_cable_detached = 2; const unsigned long lan_cable_state_unknown = 3; const unsigned long gateway_connected = 4; const unsigned long gateway_disconnected = 5; const unsigned long wifi_module_state_attached = 6; const unsigned long wifi_module_state_detached = 7; const unsigned long wifi_module_state_unknown = 8; const unsigned long internet_disconnected = 9; }; [nointerfaceobject] interface networkwifisecuritymode { const unsigned long wep = 1; const unsigned long wpa_psk = 2; const unsigned long wpa2_psk = 3; const unsigned long eap = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; [nointerfaceobject] interface networkwifiencryptiontype { const unsigned long wep = 1; const unsigned long tkip = 2; const unsigned long aes = 3; const unsigned long tkip_aes_mixed = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; };
Develop Smart Hospitality Display
apicertification file path for peap base ap connection void seteapcafilepath domstring path ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public parameters path peap certification file path exceptions webapiexception with error type typemismatcherror, if invalid domstring type passed for 'path' parameter with error type securityerror, if the application does not have the privilege to call this method since 6 5 code example var err = false; try { webapis network seteapcafilepath "/opt/usr/home/owner/share/root_test/ca der" ; } catch e { console error "seteapcafilepath exception [" + e code + "] name " + e name + " message " + e message ; err = true; } if err != true { console log "[seteapcafilepath] success" ; } seteappassphrase sets the username and password void seteappassphrase domstring name, domstring password ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public parameters name to be set password to be set exceptions webapiexception with error type typemismatcherror, if invalid domstring type passed for 'name' and 'password' parameter with error type securityerror, if the application does not have the privilege to call this method since 6 5 code example var err = false; try { webapis network seteappassphrase "testing11", "password11" ; } catch e { console error "seteappassphrase exception [" + e code + "] name " + e name + " message " + e message ; err = true; } if err != true { console log "[seteappassphrase] success" ; } getwififrequency retrieves the wi-fi network frequency works only when the active connection type is wi-fi long getwififrequency ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/network public return value long wi-fi network frequency mhz exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type invalidstateerror, if a wi-fi connection is not available since 6 0 code example var wififrequency = null; try { wififrequency = webapis network getwififrequency ; } catch e { console log "getwififrequency exception [" + e code + "] name " + e name + " message " + e message ; } if null != wififrequency { console log "[getwififrequency] wififrequency " + wififrequency ; } 1 3 networkstatechangedcallback defines a listener for gateway connection state change notifications [callback = functiononly, nointerfaceobject] interface networkstatechangedcallback { void onchange networkstate state ; }; methods onchange callback method for gateway connection state change notifications void onchange networkstate state ; privilege level public privilege http //developer samsung com/privilege/network public parameters state connection state exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type invalidstateerror, if a network connection is not available since plugin version 3 0 since 3 0 code example var gatewaystatus =null; var onchange = function data { if data == webapis network networkstate gateway_connected { gatewaystatus ="gateway_connected"; } else if data == webapis network networkstate gateway_disconnected { gatewaystatus ="gateway_disconnected"; } else{ gatewaystatus ="status unknown"; } console log "[networkstatechangedcallback] data " + data +" "+ gatewaystatus ; } 1 4 networkipmode defines constants for network ip modes [nointerfaceobject] interface networkipmode { const unsigned long none = 0; const unsigned long static = 1; const unsigned long dynamic = 2; const unsigned long auto = 3; const unsigned long fixed = 4; const unsigned long unknown = 5; }; constants none no network ip mode configured static connected to wired or wireless ipv4 network through static ip configuration dynamic connected to wired or wireless ipv6 network through dynamic ip configuration auto dhcp connected to wired or wireless ipv4 network through automatic ip configuration fixed connected to cellular network through fixed ip configuration unknown no wired or wireless connection 1 5 networkactiveconnectiontype defines constants for network connection types [nointerfaceobject] interface networkactiveconnectiontype { const unsigned long disconnected = 0; const unsigned long wifi = 1; const unsigned long cellular = 2; const unsigned long ethernet = 3; }; constants disconnected no network configured wifi connected to a wi-fi network cellular connected to a cellular network ethernet connected to an ethernet network 1 6 networkstate defines constants for network states [nointerfaceobject] interface networkstate { const unsigned long internet_connected = 0; const unsigned long lan_cable_attached = 1; const unsigned long lan_cable_detached = 2; const unsigned long lan_cable_state_unknown = 3; const unsigned long gateway_connected = 4; const unsigned long gateway_disconnected = 5; const unsigned long wifi_module_state_attached = 6; const unsigned long wifi_module_state_detached = 7; const unsigned long wifi_module_state_unknown = 8; const unsigned long internet_disconnected = 9; }; constants internet_connected internet connected lan_cable_attached lan cable connected lan_cable_detached lan cable disconnected lan_cable_state_unknown lan cable connection state unknown gateway_connected gateway connected gateway_disconnected gateway disconnected wifi_module_state_attached wi-fi module connected wifi_module_state_detached wi-fi module disconnected wifi_module_state_unknown wi-fi module connection state unknown internet_disconnected internet disconnected 1 7 networkwifisecuritymode defines constants for wi-fi network security modes [nointerfaceobject] interface networkwifisecuritymode { const unsigned long wep = 1; const unsigned long wpa_psk = 2; const unsigned long wpa2_psk = 3; const unsigned long eap = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; constants wep wep security mode wpa_psk psk security mode wpa2_psk wpa2_psk security mode eap eap security mode none open security mode unknown security mode unknown 1 8 networkwifiencryptiontype defines constants for wi-fi network encryption types [nointerfaceobject] interface networkwifiencryptiontype { const unsigned long wep = 1; const unsigned long tkip = 2; const unsigned long aes = 3; const unsigned long tkip_aes_mixed = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; constants wep wep encryption tkip tkip encryption aes aes encryption tkip_aes_mixed tkip_aes_mixed encryption none no encryption unknown encryption type unknown 2 full webidl module network { [nointerfaceobject] interface networkmanagerobject { readonly attribute networkmanager network; }; webapi implements networkmanagerobject; [nointerfaceobject] interface networkmanager { attribute networkactiveconnectiontype networkactiveconnectiontype; attribute networkipmode networkipmode; attribute networkstate networkstate; attribute networkwifisecuritymode networkwifisecuritymode; attribute networkwifiencryptiontype networkwifiencryptiontype; domstring getversion ; boolean isconnectedtogateway ; networkipmode getipmode ; void setipmode networkipmode ipmode ; domstring getsubnetmask ; void setsubnetmask domstring subnet ; domstring getgateway ; void setgateway domstring gateway ; domstring getmac ; domstring getdns ; void setdns domstring dns ; domstring getip ; void setip domstring ip ; domstring getproxyserverinfo ; void setproxyserverinfo domstring id, domstring pwd, domstring url, domstring port ; domstring gettvname ; networkactiveconnectiontype getactiveconnectiontype ; unsigned long addnetworkstatechangelistener networkstatechangedcallback listener ; void removenetworkstatechangelistener unsigned long listenerid ; domstring getwifissid ; long getwifisignalstrengthlevel ; networkwifisecuritymode getwifisecuritymode ; networkwifiencryptiontype getwifiencryptiontype ; domstring getsecondarydns ; void setdhcpoption60field domstring vendorname ; void removedhcpoption60field ; domstring getcurrentdhcpoption60field ; domstring checkcurrentipwith60field ; void enablesoftap ; void disablesoftap ; boolean issoftapenabled ; domstring getsoftapssid ; void setsoftapchannel long channel ; domstring getsoftapsecuritykey ; void setsoftapsignalstrength unsigned long power ; void seteapcafilepath domstring path ; void seteappassphrase domstring name, domstring password ; long getwififrequency ; }; [callback = functiononly, nointerfaceobject] interface networkstatechangedcallback { void onchange networkstate state ; }; [nointerfaceobject] interface networkipmode { const unsigned long none = 0; const unsigned long static = 1; const unsigned long dynamic = 2; const unsigned long auto = 3; const unsigned long fixed = 4; const unsigned long unknown = 5; }; [nointerfaceobject] interface networkactiveconnectiontype { const unsigned long disconnected = 0; const unsigned long wifi = 1; const unsigned long cellular = 2; const unsigned long ethernet = 3; }; [nointerfaceobject] interface networkstate { const unsigned long internet_connected = 0; const unsigned long lan_cable_attached = 1; const unsigned long lan_cable_detached = 2; const unsigned long lan_cable_state_unknown = 3; const unsigned long gateway_connected = 4; const unsigned long gateway_disconnected = 5; const unsigned long wifi_module_state_attached = 6; const unsigned long wifi_module_state_detached = 7; const unsigned long wifi_module_state_unknown = 8; const unsigned long internet_disconnected = 9; }; [nointerfaceobject] interface networkwifisecuritymode { const unsigned long wep = 1; const unsigned long wpa_psk = 2; const unsigned long wpa2_psk = 3; const unsigned long eap = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; [nointerfaceobject] interface networkwifiencryptiontype { const unsigned long wep = 1; const unsigned long tkip = 2; const unsigned long aes = 3; const unsigned long tkip_aes_mixed = 4; const unsigned long none = 5; const unsigned long unknown = 6; }; };
We use cookies to improve your experience on our website and to show you relevant advertising. Manage you settings for our cookies below.
These cookies are essential as they enable you to move around the website. This category cannot be disabled.
These cookies collect information about how you use our website. for example which pages you visit most often. All information these cookies collect is used to improve how the website works.
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and tailor the website to provide enhanced features and content for you.
These cookies gather information about your browser habits. They remember that you've visited our website and share this information with other organizations such as advertisers.
You have successfully updated your cookie preferences.