Class ProxyBase
Definition
- Namespace:
- Tizen.Applications.RPCPort
- Assembly:
- Tizen.Applications.Common.dll
- API Level:
- 5
Abstract class for creating a proxy class for RPC.
C#Copypublic abstract class ProxyBase : IDisposable
- Inheritance
-
System.ObjectProxyBase
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic ProxyBase()
Exceptions
Type | Condition |
---|---|
InvalidIOException | Thrown when internal IO error occurs. |
API Level: 5
Properties
Declaration
C#Copyprotected Port CallbackPort { get; }
Property Value
Type | Description |
---|---|
Port |
API Level: 5
Declaration
C#Copyprotected Port Port { get; }
Property Value
Type | Description |
---|---|
Port |
API Level: 5
Methods
Declaration
C#Copyprotected void Connect(string appid, string port)
Parameters
Type | Name | Description |
---|---|---|
System.String | appid | The target stub app ID. |
System.String | port | The name of the RPC port. |
Exceptions
Type | Condition |
---|---|
InvalidIDException | Thrown when not available app ID is used. |
InvalidIOException | Thrown when an internal IO error occurs. |
PermissionDeniedException | Thrown when the permission is denied. |
API Level: 5
Privilege Level: public
Privilege: http://tizen.org/privilege/datasharinghttp://tizen.org/privilege/appmanager.launch
Declaration
C#Copyprotected void ConnectSync(string appid, string port)
Parameters
Type | Name | Description |
---|---|---|
System.String | appid | The target stub app ID. |
System.String | port | The name of the RPC port. |
Exceptions
Type | Condition |
---|---|
InvalidIDException | Thrown when not available app ID is used. |
InvalidIOException | Thrown when an internal IO error occurs. |
PermissionDeniedException | Thrown when the permission is denied. |
API Level: 8
Privilege Level: public
Privilege: http://tizen.org/privilege/datasharinghttp://tizen.org/privilege/appmanager.launch
Declaration
C#Copypublic void Dispose()
API Level: 5
Dispose(Boolean)
Releases any unmanaged resources used by this object and disposes any other disposable objects.
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true to disposes any disposable objects, or false not to dispose disposable objects. |
API Level: 6
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copyprotected Port GetPort(Port.Type t)
Parameters
Type | Name | Description |
---|---|---|
Port.Type | t | The type of port. |
Returns
Type | Description |
---|---|
Port | Port object. |
Exceptions
Type | Condition |
---|---|
InvalidIOException | Thrown when an internal IO error occurs. |
API Level: 5
Declaration
C#Copyprotected abstract void OnConnectedEvent(string endPoint, string portName, Port port)
Parameters
Type | Name | Description |
---|---|---|
System.String | endPoint | The target stub app ID. |
System.String | portName | The name of the RPC port. |
Port | port | Port object for reading and writing. |
API Level: 5
Declaration
C#Copyprotected abstract void OnDisconnectedEvent(string endPoint, string portName)
Parameters
Type | Name | Description |
---|---|---|
System.String | endPoint | The target stub app ID. |
System.String | portName | The name of the port. |
API Level: 5
OnReceivedEvent(String, String)
Abstract method called when the proxy receives data from stub.
Declaration
C#Copyprotected abstract void OnReceivedEvent(string endPoint, string portName)
Parameters
Type | Name | Description |
---|---|---|
System.String | endPoint | The target stub app ID. |
System.String | portName | The name of the RPC port. |
API Level: 5
Declaration
C#Copyprotected abstract void OnRejectedEvent(string endPoint, string portName)
Parameters
Type | Name | Description |
---|---|---|
System.String | endPoint | The target stub app ID. |
System.String | portName | The name of the RPC port. |