Skip to content

Commit

Permalink
reset code
Browse files Browse the repository at this point in the history
  • Loading branch information
karansingla007 committed Sep 25, 2019
1 parent 4e798b4 commit 312a2e3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ios/Classes/ScreenPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
NSNumber *brightness = call.arguments[@"brightness"];
[[UIScreen mainScreen] setBrightness:brightness.floatValue];
result(nil);
} else if ([@"resetBrightness" isEqualToString:call.method]) {
[[UIScreen mainScreen] setBrightness:nil];
result(nil);
}
}
else if ([@"isKeptOn" isEqualToString:call.method]) {
bool isIdleTimerDisabled = [[UIApplication sharedApplication] isIdleTimerDisabled];
result([NSNumber numberWithBool:isIdleTimerDisabled]);
Expand Down

0 comments on commit 312a2e3

Please sign in to comment.