Show / Hide Table of Contents

    Class Port

    Definition

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

    The class that proxy and stub can use to communicate with each other.

    public class Port
    Inheritance
    Object
    Port

    Methods

    View Source

    Disconnect()

    Disconnects the port.

    Declaration
    public void Disconnect()
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown when an internal IO error occurrs.

    API Level: 9
    View Source

    ShareFile(IEnumerable<String>)

    Shares private files with other applications.

    Declaration
    public void ShareFile(IEnumerable<string> paths)
    Parameters
    Type Name Description
    IEnumerable<String> paths

    The file paths to be shared.

    Remarks

    If all added paths are under the caller application's data path which can be obtained, those will be shared to the target application. Platform will grant a temporary permission to the target application for those files and revoke it when the target application is terminated or UnshareFile() is called. Paths should be regular files. The target application can just read them. Note that the target application doesn't have read permission of the directory that is obtained by caller's data path. You should open the file path with read only mode directly.

    Exceptions
    Type Condition
    InvalidIOException

    Thrown when an internal IO error occurrs.

    API Level: 8
    View Source

    ShareFile(String)

    Shares the private file with other applications.

    Declaration
    public void ShareFile(string path)
    Parameters
    Type Name Description
    String path

    The file path to be shared.

    Exceptions
    Type Condition
    InvalidIOException

    Thrown when an internal IO error occurrs.

    See Also
    ShareFile(IEnumerable<String>)
    API Level: 8
    View Source

    UnshareFile()

    Unshares the private file.

    Declaration
    public void UnshareFile()
    Exceptions
    Type Condition
    InvalidIOException

    Thrown when an internal IO error occurrs.

    API Level: 8
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX