Interface UITraitChangeObservable

    • Method Detail

      • registerForTraitChangesWithAction

        @NotNull
        @NotNull UITraitChangeRegistration registerForTraitChangesWithAction​(@NotNull
                                                                             @NotNull NSArray<?> traits,
                                                                             @NotNull
                                                                             @NotNull org.moe.natj.objc.SEL action)
        Convenience method where the target is self.
      • registerForTraitChangesWithTargetAction

        @NotNull
        @NotNull UITraitChangeRegistration registerForTraitChangesWithTargetAction​(@NotNull
                                                                                   @NotNull NSArray<?> traits,
                                                                                   @NotNull
                                                                                   @NotNull java.lang.Object target,
                                                                                   @NotNull
                                                                                   @NotNull org.moe.natj.objc.SEL action)
        The action method you use with the following registration APIs may have zero, one, or two parameters. If the method accepts at least one parameter, the first parameter will be the trait environment whose traits are changing. If the method accepts two parameters, the second parameter will be the trait environment's previous trait collection before the change.