Package apple.fileprovider.protocol
Interface NSFileProviderServiceSource
-
public interface NSFileProviderServiceSourceAPI-Since: 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisRestricted()Indicates whether access to the service is restricted.@Nullable NSXPCListenerEndpointmakeListenerEndpointAndReturnError(@Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Return an endpoint object to allow the client application to connect to the file provider.@NotNull java.lang.StringserviceName()The service name that uniquely identifies the service (using reverse domain name notation for you service name is recommended).
-
-
-
Method Detail
-
makeListenerEndpointAndReturnError
@Nullable @Nullable NSXPCListenerEndpoint makeListenerEndpointAndReturnError(@Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Return an endpoint object to allow the client application to connect to the file provider. The endpoint is retrieved from an anonymous @c NSXPCListener that the file provider creates. The file provider is in charge of accepting incoming [@c] NSXPCConnection's via @c -[NSXPCListenerDelegate listener:shouldAcceptNewConnection:], and setting up properties on the new connection, like its exported object and interfaces (that both the file provider and the client application have agreed on).
-
serviceName
@NotNull @NotNull java.lang.String serviceName()
The service name that uniquely identifies the service (using reverse domain name notation for you service name is recommended).
-
isRestricted
default boolean isRestricted()
Indicates whether access to the service is restricted. A restricted service can only be accessed by processes that can manage the domain the service is attached to. It is only accessible through `-[NSFileProviderManager getServiceWithName:itemIdentifier:completionHandler:]` API-Since: 16.0
-
-