Show / Hide Table of Contents

    Class ProxyBase

    Definition

    Namespace:
    Tizen.Applications.RPCPort
    Assembly:
    Tizen.Applications.Common.dll
    API Level:
    5

    Abstract class for creating a proxy class for RPC.

    public abstract class ProxyBase : IDisposable
    Inheritance
    Object
    ProxyBase
    Implements
    IDisposable

    Constructors

    View Source

    ProxyBase()

    Constructor for this class.

    Declaration
    public ProxyBase()
    Exceptions
    Type Condition
    InvalidIOException

    Thrown when internal IO error occurs.

    API Level: 5

    Properties

    View Source

    CallbackPort

    Gets Port object for asynchronous events.

    Declaration
    protected Port CallbackPort { get; }
    Property Value
    Type Description
    Port
    API Level: 5
    View Source

    Port

    Gets Port object.

    Declaration
    protected Port Port { get; }
    Property Value
    Type Description
    Port
    API Level: 5

    Methods

    View Source

    Connect(String, String)

    Connects to port.

    Declaration
    protected void Connect(string appid, string port)
    Parameters
    Type Name Description
    String appid

    The target stub app ID.

    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
    View Source

    ConnectSync(String, String)

    Connects to port synchronously.

    Declaration
    protected void ConnectSync(string appid, string port)
    Parameters
    Type Name Description
    String appid

    The target stub app ID.

    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
    View Source

    Dispose()

    Release all resources used by the class ProxyBase.

    Declaration
    public void Dispose()
    API Level: 5
    View Source

    Dispose(Boolean)

    Releases any unmanaged resources used by this object and disposes any other disposable objects.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    true to disposes any disposable objects, or false not to dispose disposable objects.

    API Level: 6
    View Source

    Finalize()

    Finalizer of the class ProxyBase.

    Declaration
    protected void Finalize()
    View Source

    GetPort(Port.Type)

    Gets a port.

    Declaration
    protected 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
    View Source

    OnConnectedEvent(String, String, Port)

    Abstract method for receiving connected event.

    Declaration
    protected abstract void OnConnectedEvent(string endPoint, string portName, Port port)
    Parameters
    Type Name Description
    String endPoint

    The target stub app ID.

    String portName

    The name of the RPC port.

    Port port

    Port object for reading and writing.

    API Level: 5
    View Source

    OnDisconnectedEvent(String, String)

    Abstract method for receiving disconnected event.

    Declaration
    protected abstract void OnDisconnectedEvent(string endPoint, string portName)
    Parameters
    Type Name Description
    String endPoint

    The target stub app ID.

    String portName

    The name of the port.

    API Level: 5
    View Source

    OnReceivedEvent(String, String)

    Abstract method called when the proxy receives data from stub.

    Declaration
    protected abstract void OnReceivedEvent(string endPoint, string portName)
    Parameters
    Type Name Description
    String endPoint

    The target stub app ID.

    String portName

    The name of the RPC port.

    API Level: 5
    View Source

    OnRejectedEvent(String, String)

    Abstract method for receiving rejected event.

    Declaration
    protected abstract void OnRejectedEvent(string endPoint, string portName)
    Parameters
    Type Name Description
    String endPoint

    The target stub app ID.

    String portName

    The name of the RPC port.

    API Level: 5

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX