×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2010
    Location
    Turkey
    Posts
    5

    Setting Light Timeout

    Hi everyone as u know we can take light timeout info in WRT apps (http://wiki.forum.nokia.com/index.ph...timeout_in_WRT)
    I want setting light timeout like viration example (http://wiki.forum.nokia.com/index.ph...bration_in_WRT)

    I changed parameters for light time out. I want show codes
    var on = {Status:50};
    var setParameters = {Entity:"Display", Key:"ScreenSaverTimeout", SystemData : on};

    var result = systemServiceObj.ISysInfo.SetInfo(setParameters);

    what is the problem in this codes. I changed entity as "display" and key as "ScreenSaverTimeout". maybe the problem in the systemdata. is "status:50" correct for light timeout.

    I hope I can explain. thx everybody...

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,098

    Re: Setting Light Timeout

    Hi there,DaParadox

    The setParameters let's you to work with on/off, so you could compare your code to this below that sets the
    vibration OFF.

    Code:
    function resetVibraActive()
     {
        var off = {Status:0};
     
        var setParameters = {Entity:"General", Key:"VibraActive", SystemData : off};
        try {
            var result = systemServiceObj.ISysInfo.SetInfo(setParameters);
        }
        catch (ex) 
        {
            alert(ex);
            return;
        }
        alert("Vibrator is set to off");
    Then if you want to use a setter to specify values, you can do that like this:

    Code:
    ...Start vibration with set values...
    
      sysinfo.startvibra(sysinfo.vibramaxduration, vibraIntensity)
    ...
    And more importantly, you would need to know what are the supported setters and getters for a specific
    feature. These are shown in a table in Web Developers Library , Supported system attributes (entities and keys)
    for Platform Services (Supported System Information Channels in WRT Platform Services 2.0 API).

    e.g. for LightTimeout
    Code:
    Key           Input    Output    Value             GetInfo   SetInfo
    ====================================================================
    
    LightTimeout   NA      Status    5 - 60  seconds      X
    No setter found there.


    Best Regards,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

Similar Threads

  1. Light Api problems (part 2) N73
    By microsoft2 in forum Symbian
    Replies: 4
    Last Post: 2010-05-16, 22:54
  2. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum Series 40 & S60 Platform Feedback Archive
    Replies: 6
    Last Post: 2008-08-23, 14:29
  3. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-08-22, 13:45
  4. Problem with Skin enabling - disabling and Setting List in S60
    By sauvikds in forum General Development Questions
    Replies: 1
    Last Post: 2008-08-21, 12:44
  5. java api - setting timeout on send
    By rmelgaco in forum General Messaging
    Replies: 0
    Last Post: 2002-12-12, 17:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×