Search Unity

disable the iPhones idleTimer

Discussion in 'iOS and tvOS' started by xcoder, Dec 8, 2009.

  1. xcoder

    xcoder

    Joined:
    Sep 26, 2009
    Posts:
    7
    Hi All,
    I want to disable the iPhones idleTimer.

    I used ,
    [UIApplication sharedApplication].idleTimerdisabled = YES;

    but it's not working.

    I am using unity iphone 1.5.

    please help me.
     
  2. Dark-Table

    Dark-Table

    Joined:
    Nov 25, 2008
    Posts:
    315
    I think Unity-side setting "iPhoneSettings.screenCanDarken" might be what you are looking for. It keeps the screen from dimming and falling asleep.