Interface UIGuidedAccessRestrictionDelegate


  • public interface UIGuidedAccessRestrictionDelegate
    UIGuidedAccessRestrictionDelegate Implement on the application delegate to present the user with additional Guided Access restrictions. The initial state of all Guided Access restrictions is UIGuidedAccessRestrictionStateAllow. API-Since: 7.0
    • Method Detail

      • detailTextForGuidedAccessRestrictionWithIdentifier

        @Nullable
        default @Nullable java.lang.String detailTextForGuidedAccessRestrictionWithIdentifier​(@NotNull
                                                                                              @NotNull java.lang.String restrictionIdentifier)
        Returns a localized string that gives additional detail about the restriction associated with the identifier.
      • guidedAccessRestrictionIdentifiers

        @Nullable
        @Nullable NSArray<java.lang.String> guidedAccessRestrictionIdentifiers()
        Returns a list of restriction identifiers in the order they will be presented to the user. Each restriction identifier must be unique string. For example: com.MyCompany.MyApp.SomeRestrictionIdentifier
      • guidedAccessRestrictionWithIdentifierDidChangeState

        void guidedAccessRestrictionWithIdentifierDidChangeState​(@NotNull
                                                                 @NotNull java.lang.String restrictionIdentifier,
                                                                 long newRestrictionState)
        Called each time the restriction associated with the identifier changes state.
      • textForGuidedAccessRestrictionWithIdentifier

        @Nullable
        @Nullable java.lang.String textForGuidedAccessRestrictionWithIdentifier​(@NotNull
                                                                                @NotNull java.lang.String restrictionIdentifier)
        Returns a localized string that describes the restriction associated with the identifier.