Skip to content

Commit

Permalink
[iOS] Add unregisterSchemeChangeListener method.
Browse files Browse the repository at this point in the history
  • Loading branch information
qianyuan.wqy committed Dec 3, 2019
1 parent e4a96de commit 4471d24
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ios/sdk/WeexSDK/Sources/Module/WXDarkSchemeModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ @implementation WXDarkSchemeModule

WX_EXPORT_METHOD_SYNC(@selector(isUsingDarkScheme))
WX_EXPORT_METHOD(@selector(registerSchemeChangeListener:))
WX_EXPORT_METHOD(@selector(unregisterSchemeChangeListener))

- (BOOL)isUsingDarkScheme
{
Expand All @@ -49,4 +50,9 @@ - (void)onInstanceSchemeChanged
}
}

- (void)unregisterSchemeChangeListener
{
_schemeChangedCallback = nil;
}

@end

0 comments on commit 4471d24

Please sign in to comment.