# Class Signage#getSignageInfo

Signage

- Defined in: signage.js

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| Signage#getSignageInfo(successCallback, errorCallback) Gets signage information

## Class Detail

Signage#getSignageInfo(successCallback, errorCallback)

Gets signage information

    function getSignageInfo() {

       var successCb = function (cbObject){
         var portraitMode= cbObject.signageInfo;
         var ismMethod= cbObject.ismMethod;
         var digitalAudioInputMode= cbObject.digitalAudioInputMode;

         console.log("portraitMode: " + portraitMode);
         console.log("ismMethod: " + ismMethod);

         for(var input in digitalAudioInputMode){
            var audioInput = digitalAudioInputMode[input];
            console.log("digitalAudioInputMode for " + input +" = " + audioInput);
         }
       };

       var failureCb = function(cbObject){
         var errorCode = cbObject.errorCode;
         var errorText = cbObject.errorText;
         console.log( " Error Code [" + errorCode + "]: " + errorText);
       };

       var signage = new Signage();
       signage.getSignageInfo(successCb, failureCb);

    }

Parameters:
{Function} successCallback
  success callback function.
{Function} errorCallback
  failure callback function.

Since:
  1.0, 1.3 checkScreen
Returns:

  After the method is successfully executed, successCallback is called with the following parameters.

  Property | Type | Description
  --- | --- | ---
  portraitMode | Signage.OsdPortraitMode | Signage.UNDEFINED | Portrait mode. If the value for this item is not set or defined, Signage.UNDEFINED will be returned.
  ismMethod | Signage.IsmMethod | Signage.UNDEFINED | ISM(Image Sticking Minimization) Method. If the value for this item is not set or defined, Signage.UNDEFINED will be returned.
  digitalAudioInputMode | Array | Digital audio input mode. Array of {input_uri : Signage.DigitalAudioInput or Signage.UNDEFINED } pair.
  checkScreen | Boolean | Pixel sensor is enabled. true: enabled, false: disabled If it is enabled, Signage.EventType.SCREEN_STATUS event is available.

  If an error occurs, errorCallback is called with errorCode and errorText.