OMCMobileComponent Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | OMCMobileComponent.h |
Overview
A mobile component holds the settings that allow a service proxy to communicate with a mobile suite server.
manager
The mobile component’s manager.
@property (readonly) OMCMobileManager *managerDeclared In
OMCMobileComponent.h
name
The mobile component’s name, as specified by the OMC property list file
(OMC.plist). The default name is determined by the implementation class.
@property (readonly) NSString *nameDeclared In
OMCMobileComponent.h
properties
The mobile component’s properties, as specified by the OMC property list file
(OMC.plist).
@property (readonly) NSDictionary<NSString*id> *propertiesDeclared In
OMCMobileComponent.h
baseURL
The mobile component’s base URL, upon which requests such as HTTP URLs are
built. Typically, this URL is set via the OMC property list file (OMC.plist)
and is in the form http://<host>:<port>.
@property (readonly) NSURL *baseURLDeclared In
OMCMobileComponent.h
oAuthScope
The mobile component’s OAuth scope.
@property (readonly) NSString *oAuthScopeDeclared In
OMCMobileComponent.h
oAuthTokenEndPointURL
The mobile component’s OAuth token end point URL, which is used to acquire OAuth tokens, if necessary.
@property (readonly, nullable) NSURL *oAuthTokenEndPointURLDeclared In
OMCMobileComponent.h
– serviceProxyForClass:
Returns the receiver’s instance of the specified service proxy, if present. If the specified service proxy is not present, creates it via reflection and returns the new instance.
- (nullable OMCServiceProxy *)serviceProxyForClass:(Class)serviceProxyClassParameters
serviceProxyClass |
The type of service proxy. |
|---|
Discussion
Warning: Raises an NSInvalidArgumentException if serviceProxyClass is nil.
Declared In
OMCMobileComponent.h
– removeServiceProxy:
Removes the specified service proxy from the receiver.
- (void)removeServiceProxy:(OMCServiceProxy *)serviceProxyParameters
serviceProxy |
The service proxy. |
|---|
Discussion
Does nothing if the receiver does not contain serviceProxy.
Warning: Raises an NSInvalidArgumentException if serviceProxy is nil.
Declared In
OMCMobileComponent.h
– removeServiceProxyForClass:
Removes the receiver’s instance of the specified service proxy.
- (void)removeServiceProxyForClass:(Class)serviceProxyClassParameters
serviceProxyClass |
The type of service proxy. |
|---|
Discussion
Does nothing if the receiver does not contain the specified service proxy.
Warning: Raises an NSInvalidArgumentException if serviceProxyClass is nil.
Declared In
OMCMobileComponent.h